Forum Discussion
Harold_Deadman_
Nimbostratus
Apr 13, 2007AES decryption returning empty string
I am working on encrypting some cookies but I must be doing something wrong because I get empty strings when I decrypt the cookie. I have made the following example to demonstrate what I am seeing. Does anyone see what I am doing wrong? This is on 9.4. Thanks.
when RULE_INIT {
set ::key [AES::key 256]
set stringtoencrypt "Testing encryption"
set encrypted [b64encode [AES::encrypt $::key $stringtoencrypt]]
log local0. "Encrypted and encoded $encrypted"
set decrypted [AES::decrypt $::key [b64decode $encrypted]]
log local0. "Decrypted and decoded $decrypted"
}
From the local logfile, note the decrypted value is empty:
Fri Apr 13 19:43:24 BST 2007 tmm tmm[1579] Rule : Decrypted and decoded
Fri Apr 13 19:43:24 BST 2007 tmm tmm[1579] Rule : Encrypted and encoded Ppoyd/a17LTVDQgmjJ39rXstNUNCLmJpDJvOlymi0allgb/MviS9JloTerv/ZrlefNnosSpI=
18 Replies
- Mark_Curole
Nimbostratus
This problem appears to be in 9.3 as well. Any eta on a patch? - Scott_Larson
Nimbostratus
yes. the eta is hotfix 9.4.1 which I think is available now. - Deb_Allen_18Historic F5 AccountI've already contacted Support to find out if a hotfix is avail for 9.3, haven't heard back yet.
- Eirik_Gjestelan
Nimbostratus
Can anybody confirm that this problem exists on 9.3 as well? We migrated from 9.1.1 to 9.3 and started getting empty strings when decrypting a base64 decoded string. If so, any word on the 9.3 fix? - hoolio
Cirrostratus
Hi, - Mark_Curole
Nimbostratus
The bug definitely exists in 9.3, and I have not been able to get anything from support on a hotfix for this. This is very disappointing because 9.3 is supposed to be the maintainance release tree and this is a major bug. - kendalladkins_5
Nimbostratus
I am currently running BIG-IP 9.4.1 Build 29.0 and I still see the problem discussed in this thread. Has anyone confirmed that this problem was resolved in 9.4.1? - spark_86682Historic F5 AccountIn fact, this is not resolved in 9.4.1. CR79907 is resolved in 9.4.2, as well as v9.3.1 and v9.3.0 HF3.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects