Table of Contents

Class CryptHelper

Namespace
SunamoCrypt
Assembly
SunamoCrypt.dll

Cryptographic helper for encryption and decryption operations

public class CryptHelper
Inheritance
CryptHelper
Inherited Members
Extension Methods

Constructors

CryptHelper(Provider, List<byte>, List<byte>, string)

Initializes a new instance of the CryptHelper class

public CryptHelper(Provider provider, List<byte> salt, List<byte> initializationVector, string passphrase)

Parameters

provider Provider

Encryption provider to use

salt List<byte>

Salt value for encryption

initializationVector List<byte>

Initialization vector

passphrase string

Passphrase for encryption

Methods

ApplyCryptData(ICrypt, ICrypt)

Copies cryptographic data from one instance to another

public static void ApplyCryptData(ICrypt to, ICrypt from)

Parameters

to ICrypt

Destination instance

from ICrypt

Source instance

Decrypt(List<byte>)

Decrypts the specified data

public List<byte> Decrypt(List<byte> data)

Parameters

data List<byte>

Data to decrypt

Returns

List<byte>

Decrypted data

Encrypt(List<byte>)

Encrypts the specified data

public List<byte> Encrypt(List<byte> data)

Parameters

data List<byte>

Data to encrypt

Returns

List<byte>

Encrypted data