Class So3Des112Crypto
Wrapper for Triple DES
Inherited Members
Namespace: SuperOffice.Security.Cryptography
Assembly: SoCore.dll
Syntax
public class So3Des112Crypto
Constructors
So3Des112Crypto(byte[])
Default constructor taking the DbTag as a byte array.
Declaration
public So3Des112Crypto(byte[] dbTag)
Parameters
Type | Name | Description |
---|---|---|
byte[] | dbTag | DbTag as a byte array |
So3Des112Crypto(string)
Default constructor taking the DbTag in the format it is in the database.
Declaration
public So3Des112Crypto(string dbTagString)
Parameters
Type | Name | Description |
---|---|---|
string | dbTagString | DbTag as formatted in the database. |
Methods
Decrypt(byte[])
Decrypt data encrypted with the Encrypt(byte[], bool) method.
Declaration
public byte[] Decrypt(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | Buffer to decrypt. |
Returns
Type | Description |
---|---|
byte[] | Decrypted buffer. |
Encrypt(byte[])
Encrypt data symmetrically using the provided DbTag
Declaration
public byte[] Encrypt(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | Buffer to encrypt. |
Returns
Type | Description |
---|---|
byte[] | Encrypted buffer |
Encrypt(byte[], bool)
Encrypt data symmetrically using the provided DbTag
Declaration
[Obsolete("Use Encrypt with Central DbTab instead of shipping the DbTag with the encrypted data", false)]
public byte[] Encrypt(byte[] buffer, bool bIncludeDbTag)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer | Buffer to encrypt. |
bool | bIncludeDbTag | True to include the DbTag hidden inside the encrypted data so it can be decrypted with a different DbTag. |
Returns
Type | Description |
---|---|
byte[] | Encrypted buffer |