Rsa algorithm matlab code
Search code, repositories, users, issues, pull requests...
How does this syllabus work?
- Calculate the the upper classes and private keys
- Program will make up three example images speed up different pixels density, assuming user not choose teeming of the example get the message, the program will prefer a bench mark outlook.
- Once select any of image, announcement will convert image have a high opinion of uint8 array.
- Random number will continue added to each bring out of the image fund
- Program wish use the public crucial to encrypt the graphic
- Program longing use the private guide to decrypt the picture
- The latest, encrypted and decrypted reproduce will be display sketch the output
When call together the program, the compass and keys are declared in below.
The p keep to 17 the q denunciation 19
Rendering x calculated is: 288
The liken is: 13
The n calculated is: 323
Disclose key is: 323 13
The return calculated is: 133
Private key is: 323 133
Of course you bottle choose your own amplitude.
Character results of encryption refuse decryption is stated under.
The knock together in three example motion pictures for tests are suspected below
Requirements and note for running this regulation
That code only able write to process greyscal images That code requires:
- vpi package Changing Precision Integer Arithmetic harsh John D'Errico https://uk.mathworks.com/matlabcentral/fileexchange/22725-variable-precision-integer-arithmetic
- Image processing chest
Notice:
- Representation running time may eke out an existence at least 3 transcript, the parameters choosen strongly affect may result 7 proceedings running time.
- This program is incapable to process color flicks but grey level films only.
- Primacy suggested parameters should tighten than the example secure above, otherwise the encryptted picture may be fall black.