public void EncryptDecrypt() { _rs256Output = RS256.Encrypt(_RS256_INPUT, _PASSWORD); Assert.IsNotEmpty(_rs256Output); string decrypted = RS256.Decrypt(_rs256Output, _PASSWORD).Trim('\0'); Assert.IsNotEmpty(decrypted); Assert.AreEqual(_RS256_INPUT, decrypted); }
public static string Encrypt(string input) { string formatted = $"{input}${_signature}"; return(RS256.Encrypt(formatted)); }