This code asks for Two prime numbers and then computes Public and Private key. Then the message is encrypted using Public key and decrypted using Private key. An example is shown in figure.
missing a function, is this in an additional toolbox or base matlab is ok.
I'm using 2015b.
Undefined function or variable
you should use extended eucleudianalgorithm to search for d.
this implementation is incorrect
dec(enc(msg)) != msg
Updating code to work for even small prime numbers
changed the title to RSA algorithm
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.