string.ReplaceBase64UrlSafeBack()

Here are the examples of the csharp api string.ReplaceBase64UrlSafeBack() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : CoreUserContext.cs
with GNU General Public License v3.0
from KevinWG

public static string GetTokenDetail(string encryptKey, string token)
        {
            var tokenDetail = AesRijndael.Decrypt(token.ReplaceBase64UrlSafeBack(), encryptKey);

            if (string.IsNullOrEmpty(tokenDetail))
                throw new ArgumentNullException(nameof(token), "不合法的用户Token");

            return tokenDetail;
        }