May 6, 2012

Random key string

This is my first, very simple blog post, just trying this out.

I needed randomly generated keys as part of the authentication and user session validation, and this is the short code snippet I wrote for it. It's quite efficient, thread-safe, and easily modifiable regarding the set of characters it uses.

No comments:

Post a Comment