Cody

Solution 1981633

Submitted on 18 Oct 2019 at 14:26 by William
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
password=1:10; password(find(key()))=key()+find(key()); % http://en.wikipedia.org/wiki/RSA_(cryptosystem) e=7; n=14705773; encrypted_password=[8926999 1509855 4535462 14198804 9178870 10365101 9398838 9178870 4782969 10000000]; assert(isequal(mod(uint64(password).^e,n),encrypted_password))