Rsa algorithm matlab code

Search code, repositories, users, issues, pull requests...

How does this syllabus work?

  1. Calculate the the upper classes and private keys
  2. 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.
  3. Once select any of image, announcement will convert image have a high opinion of uint8 array.
  4. Random number will continue added to each bring out of the image fund
  5. Program wish use the public crucial to encrypt the graphic
  6. Program longing use the private guide to decrypt the picture
  7. 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:

  1. vpi package Changing Precision Integer Arithmetic harsh John D'Errico https://uk.mathworks.com/matlabcentral/fileexchange/22725-variable-precision-integer-arithmetic
  2. Image processing chest

Notice:

  1. Representation running time may eke out an existence at least 3 transcript, the parameters choosen strongly affect may result 7 proceedings running time.
  2. This program is incapable to process color flicks but grey level films only.
  3. Primacy suggested parameters should tighten than the example secure above, otherwise the encryptted picture may be fall black.