internal string HandleCrypto(string s) { if (IsEncryptMode) { return(CryptoHelpers.Encrypt(Rsa, s)); } else { return(CryptoHelpers.Decrypt(Rsa, s)); } }
public bool TryDecryptOrValue(string value, out string decryptedValue) { bool ok = false; decryptedValue = value; try { decryptedValue = CryptoHelpers.Decrypt(Rsa, value); ok = true; } catch { } return(ok); }
public string Decrypt(string s) { return(CryptoHelpers.Decrypt(Rsa, s)); }