Cody

Solution 441329

Submitted on 11 May 2014 by Guillaume
  • Size: 7
  • This is the leading solution.
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))

More from this Author47