Write a python program to achieve AES 128 bit key length encoding and decoding of text and it should be algorithm based rather than using any library function.
Input text
“To be, or not to be, that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune,
Or to take arms against a sea of troubles
And by opposing end them. To die—to sleep,
No more; and by a sleep to say we end
The heart-ache and the thousand natural shocks
That flesh is heir to: 'tis a consummation
Devoutly to be wish'd. To die, to sleep;
To sleep, perchance to dream—ay, there's the rub:
For in that sleep of death what dreams may come,
When we have shuffled off this mortal coil,
When he himself might his quietus make
With this regard their currents turn awry
And lose the name of action.”
Expected output:
O426pZT/JplIF8kyaiz3BDnCS5gfsMqAQS3P4ddM6ymaAlpSJBd8BNkZMJwux18ScbGM/HQn8RG its extended upto some length
Comments
Leave a comment