<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

kCura.Crypto.TripleDESEncryptor

public class TripleDESEncryptor
Provides static cryptography members using SHA1 and DES encryption.

public static string Decrypt(string encryptedString, string key)

DES decrypts the provided string using the provided key using Electronic Codebook mode.

public static string DecryptWithEncoding(string encryptedString, string key, Encoding encoding)

Base64 decodes and DES decrypts the provided string using the provided key using Electronic Codebook mode.

public static string Encrypt(string stringToEncrypt, string key)

DES encrypts the provided string using the provided key using Electronic Codebook mode.

public static string EncryptWithEncoding(string stringToEncrypt, string key, Encoding encoding)

DES encrypts and Base64 encodes the provided string using the provided key using Electronic Codebook mode.

public static byte[] SHAHash(string value)

SHA1 hashes the provided string.