StopGuessing.Models.LoginAttempt.HashCookie C# (CSharp) Метод

HashCookie() публичный статический Метод

Get the hash of a cookie provided by the client software.
public static HashCookie ( string plaintextCookie ) : string
plaintextCookie string The cookie string.
Результат string
        public static string HashCookie(string plaintextCookie)
        {
            return Convert.ToBase64String(ManagedSHA256.Hash(Encoding.UTF8.GetBytes(plaintextCookie)));
        }