Forum Discussion
Rabbit23_116296
Nimbostratus
Feb 08, 2014cryptography and irules
I would like to send a base64 encoded AES encrypted string in the body of an HTTP post to LTM.
Do I need to use CRYPTO:: methods to use this? In debugging, I cannot decrypt outside of TMM when using...
Rabbit23_116296
Nimbostratus
Feb 09, 2014Thanks - I am able to successfully encrpyt and decrpyt string in a C visual studio project and the same in TCL F5. Just not able to decrypt outside their own environments.
I will keep at it, the C methods use AesCryptoServiceProvider(), probably just the way TCL/C methods encode the keys to bytes. The irule:
set foo "plaintextstring"
set key "abed1ddc04fbb05856bca4a0ca60f21e"
set iv "20140204c1231060"
set enc_msisdn [CRYPTO::encrypt -alg aes-128-cbc -keyhex $key -ivhex $iv $foo]
set dec_msisdn [CRYPTO::decrypt -alg aes-128-cbc -keyhex $key -ivhex $iv $enc_msisdn]
log local0. "CRYPTO::encrypted: [b64encode $enc_msisdn]"
log local0. "CRYPTO decrypted: $dec_msisdn"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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