Base64 must not have \n
This commit is contained in:
parent
4a18a3f528
commit
437fef99b6
|
@ -59,7 +59,7 @@ sub encrypt {
|
|||
my $l = bytes::length($data) % 16;
|
||||
$data .= "\0" x ( 16 - $l ) unless ( $l == 0 );
|
||||
|
||||
eval { $data = encode_base64( $self->_getCipher->encrypt($data) ); };
|
||||
eval { $data = encode_base64( $self->_getCipher->encrypt($data), '' ); };
|
||||
if ($@) {
|
||||
$msg = "Crypt::Rijndael error : $@";
|
||||
return undef;
|
||||
|
|
Loading…
Reference in New Issue
Block a user