in a code of encryption if y=mod(x,256); is used. how can i apply the same statement in decryption process to get x back if i have only y and 256 know..

1 Ansicht (letzte 30 Tage)
encryption scheme i used was bit level permutation

Akzeptierte Antwort

Jan
Jan am 2 Jan. 2016
Bearbeitet: Jan am 2 Jan. 2016
You can't. If x is smaller than 256, the modulo operation replies x without changes. If x is larger than 256, this operation replies the remainder of the division, and the other information is lost. So if you do not store the value of floor(x / 256) anywhere, this "encryption" is not reversable in a unique manner.
  16 Kommentare
Walter Roberson
Walter Roberson am 9 Feb. 2016
That paper has an incorrect algorithm unless there is a non-standard notation that is explained earlier in the paper or unless there is a typesetting mistake in the formula. I would need a printed copy of the paper (based upon the original manuscript, not an image of it), and a magnifying glass to be certain, but with the image you have given the algorithm certainly appears to be wrong.
tania
tania am 11 Feb. 2016
Sry for the inconvenience and thank u and I will try to provide the hard copy if possible

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Encryption / Cryptography finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by