Found the solution!
I want to encrypt a random number but I am getting the message "Taint checks are turned on and your key is tainted." I can decrypt the data that was passed in but it fails when doing the encrypt. Thanks for any help. rtmhal
if ( $key =~ /(\w+)/ ) { $key = $1; } my $cipher2 = Crypt::CBC->new( -key => $key, -cipher => 'Twofish' ); $random_integer = int(rand(100000)); ($random_integer) = $random_integer =~ /(\d+)/; $encrypted_int = $cipher2->encrypt($1);
In reply to taint when encrypting by rtmhal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |