ascii - Python AES text encryption script -


i working on python script encrypts text using 128-aes algorithm have problem:

picture shows script processes. works fine thing in decryption when give wrong key output decimals goes out of range of ascii, program can't show text @ output.
expected wrong text! wrong code or should that?

enter image description here

that's normal, because aes (and modern cryptosystems) dealing encrypting actual byte values, not ascii values. incorrect key, data won't decrypted correctly, resulting in ranges outside of normal ascii values.

if you're looking encrypts/decrypts ascii, of "classic" ciphers: caesar shift, vigenere, etc.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -