Class Encryption
Use to encrypt and decrypt text
Inheritance
System.Object
Encryption
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:AzureFunctionsForSharePoint.Common
Assembly:AzureFunctionsForSharePoint.Common.dll
Syntax
public class Encryption
Methods
| Improve this Doc View SourceDecrypt(String, String, String)
Decrypts text given a password and salt
Declaration
public static string Decrypt(string cipherText, string password, string salt)
Parameters
Type | Name | Description |
---|---|---|
System.String | cipherText | The text to decrypt |
System.String | password | The password |
System.String | salt | The salt |
Returns
Type | Description |
---|---|
System.String | Clear text |
See Also
System.Security.Cryptography.Rijndael
Encrypt(String, String, String)
Encrypts text given a password and salt
Declaration
public static string Encrypt(string clearText, string password, string salt)
Parameters
Type | Name | Description |
---|---|---|
System.String | clearText | The text to encrypt |
System.String | password | The password |
System.String | salt | The salt |
Returns
Type | Description |
---|---|
System.String | Cipher text |
See Also
System.Security.Cryptography.Rijndael