Class EncryptionManager
Implements operations for the encryption manager.
Inheritance
System.Object
EncryptionManager
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: Mediachase.Commerce.Shared
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class EncryptionManager
Constructors
EncryptionManager()
Declaration
public EncryptionManager()
Methods
BytesToBase64(Byte[])
Converst a byte array to a Base64 encoded string.
Declaration
public static string BytesToBase64(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | The byte array to convert. |
Returns
Type | Description |
---|---|
System.String | The Base64 encoded bytes. |
BytesToHex(Byte[])
Converts an byte array to a hexadecimal encoded string.
Declaration
public static string BytesToHex(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | The byte array to convert. |
Returns
Type | Description |
---|---|
System.String | The hexadecimal encoded bytes. |
Decrypt(String)
Decrypts the specified STR cipher text.
Declaration
public static string Decrypt(string strCipherText)
Parameters
Type | Name | Description |
---|---|---|
System.String | strCipherText | The STR cipher text. |
Returns
Type | Description |
---|---|
System.String |
Encrypt(String)
Encrypts the specified STR plain text.
Declaration
public static string Encrypt(string strPlainText)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPlainText | The STR plain text. |
Returns
Type | Description |
---|---|
System.String |