ArchiSteamFarm.CryptoHelper.Encrypt C# (CSharp) Метод

Encrypt() статический приватный Метод

static private Encrypt ( ECryptoMethod cryptoMethod, string decrypted ) : string
cryptoMethod ECryptoMethod
decrypted string
Результат string
        internal static string Encrypt(ECryptoMethod cryptoMethod, string decrypted)
        {
            if (string.IsNullOrEmpty(decrypted)) {
                ASF.ArchiLogger.LogNullError(nameof(decrypted));
                return null;
            }

            switch (cryptoMethod) {
                case ECryptoMethod.PlainText:
                    return decrypted;
                case ECryptoMethod.AES:
                    return EncryptAES(decrypted);
                case ECryptoMethod.ProtectedDataForCurrentUser:
                    return EncryptProtectedDataForCurrentUser(decrypted);
                default:
                    return null;
            }
        }