Secure Random Text Strings in SQL Server

There are a lot of uses for hard-to-guess random text strings in the world of web applications. They’re good for session keys, nonces, and other such things to slow down cybercriminals.

I had the occasion to figure out how to generate them in SQL Server. That DBMS includes a source of random numbers. Here’s what I came up.

Leave a Reply

Your email address will not be published. Required fields are marked *