mavili has asked for the wisdom of the Perl Monks concerning the following question:
print $cipher->decrypt($ct); gives back the decrypted text (plain text I started with). However, instead of decrypt($ct) when I try to copy and paste the content of the variable $ct, it gives me totally different piece of text! How can I get my plain text back by using the 'content' of the variable $ct and not the variable. This is due to the fact that I will be saving the encrypted text into a file, and I wanna get the plain text whenever I decrypt the cipher text.$cipher = Crypt::Twofish->new($key); $ct = $cipher->encrypt('encrypted text 1');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: encryption using Twofish
by GrandFather (Saint) on Aug 12, 2012 at 23:57 UTC | |
|
Re: encryption using Twofish
by aitap (Curate) on Aug 13, 2012 at 07:50 UTC | |
|
Re: encryption using Twofish
by zentara (Cardinal) on Aug 13, 2012 at 10:44 UTC |