Class Encryptor
Creates the new instance of the Encryptor class.
Inheritance
System.Object
Encryptor
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: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class Encryptor
Constructors
Encryptor()
Declaration
public Encryptor()
Methods
Decrypt(String, String, Byte[])
Decrypts an encrypted text using specified password and salt.
Declaration
public static string Decrypt(string cipherText, string password, byte[] salt)
Parameters
Type | Name | Description |
---|---|---|
System.String | cipherText | The text to decrypt. |
System.String | password | The password used to encrypt text. |
System.Byte[] | salt | The salt added to encrypted text. |
Returns
Type | Description |
---|---|
System.String |
Encrypt(String, String, Byte[])
Encrypts a clear text using specified password and salt.
Declaration
public static string Encrypt(string clearText, string password, byte[] salt)
Parameters
Type | Name | Description |
---|---|---|
System.String | clearText | The text to encrypt. |
System.String | password | The password to create key for. |
System.Byte[] | salt | The salt to add to encrypted text to make it more secure. |
Returns
Type | Description |
---|---|
System.String |