This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Based on Eric J's answer here: https://stackoverflow.com/a/1344255/72350 | |
- Fixed bias by using 64 characters | |
- Removed unneeded 'new char[62]' and 'new byte[1]' | |
- Using GetBytes instead of GetNonZeroBytes | |
*/ | |
using System.Security.Cryptography; | |
using System.Text; |