AptiGram.AptiGramBootstrapper.UrlHashKeyGenerator.Get C# (CSharp) Method

Get() public method

public Get ( Nancy.Request request ) : string
request Nancy.Request
return string
            public string Get(Request request)
            {
                using (var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider())
                {
                    var hash = md5.ComputeHash(Encoding.UTF8.GetBytes(request.Url.ToString()));
                    return Convert.ToBase64String(hash);
                }
            }
AptiGramBootstrapper.UrlHashKeyGenerator