Forum Discussion
Kai_Wilke
Mar 18, 2012MVP
Random Number Generator
Hi Folks,
i'm looking for a secure way to generate random and non-predicable 256bit values for session cookies. I pretty much understand the basics of RNG and already know that the irule "ra...
hooleylist
Mar 20, 2012Cirrostratus
Hi Kai,
Both AES and CRYPTO commands should work similarly to create a secure random number.
On a tangent I'd make sure to avoid using a global variable as globals would demote the virtual server from running on all TMMs (they're not CMP compatible). If you want to store a static string, you can use the static namespace:
https://devcentral.f5.com/wiki/iRules.cmp.ashx
https://devcentral.f5.com/wiki/iRules.static.ashx
Aaron
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