src/fursvp.helpers/FursvpRandom.cs
/// <summary>
/// No lucky guesses random code.
/// There are 414,208 possible combinations. An attacker knowing this algorithm would have a 1 in 82,841.6 chance (0.001207%) of getting 1 guess correct out of 5 guesses.
/// </summary>
/// <returns>A six digit numeric code that is easy to remember and copy by hand, but hard to guess randomly. Good for verification codes.</returns>
No lucky guesses random code.
There are 414,208 possible combinations. An attacker knowing this algorithm would have a 1 in 82,841.6 chance (0.001207%) of getting 1 guess correct out of 5 guesses.
No lucky guesses random code . There are 414 208 possible combinations . An attacker knowing this algorithm would have a 1 in 82 841 . 6 chance ( 0 . 001207% ) of getting 1 guess correct out of 5 guesses .
public static string CopyableButHardToGuessCode()
        {
            string code;
            do
            {
                code = new Random().Next(100236, 998752).ToString(CultureInfo.InvariantCulture);
            }
            while (!IsSturdy(code));
            return code;
        }
public static string CopyableButHardToGuessCode ( ) { string code ; do { code = new Random ( ) . Next ( 100236 , 998752 ) . ToString ( CultureInfo . InvariantCulture ) ; } while ( ! IsSturdy ( code ) ) ; return code ; }
No lucky guesses random code.
No lucky guesses random code .
A six digit numeric code that is easy to remember and copy by hand, but hard to guess randomly. Good for verification codes.
A six digit numeric code that is easy to remember and copy by hand but hard to guess randomly . Good for verification codes .