Problem 2314. Open coded lock.

Solution 451152

Submitted on 6 Jun 2014 by Jan Orwat
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()); % 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))

Suggested Problems

More from this Author41

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!