Forum Discussion
Harold_Deadman_
Apr 13, 2007Nimbostratus
The problem appears to be that the encrypted value doesn't survive the base 64 encoding/decoding process. If I do this:
when RULE_INIT {
set ::key [AES::key 256]
set stringtoencrypt "Testing encryption"
set encrypted [AES::encrypt $::key $stringtoencrypt]
log local0. "Encrypted $encrypted"
set decrypted [AES::decrypt $::key $encrypted]
log local0. "Decrypted $decrypted"
}
then it works but if I am going to put an encrypted value in a cookie I would think it would need it to be encoded.