Table of Contents

Class CryptDelegates

Namespace
SunamoSecurity.Crypting
Assembly
SunamoSecurity.dll

Holds delegate references for string encryption and decryption operations.

public class CryptDelegates
Inheritance
CryptDelegates
Inherited Members
Extension Methods

Constructors

CryptDelegates(Func<string, string, string?>, Func<string, string, string?>)

Initializes a new instance of the CryptDelegates class.

public CryptDelegates(Func<string, string, string?> decryptString, Func<string, string, string?> encryptString)

Parameters

decryptString Func<string, string, string>

The function to decrypt a string using salt and encrypted text.

encryptString Func<string, string, string>

The function to encrypt a string using salt and plain text.

Properties

DecryptString

Gets or sets the decryption function that takes salt and encrypted text, returning the decrypted string.

public Func<string, string, string?> DecryptString { get; set; }

Property Value

Func<string, string, string>

EncryptString

Gets or sets the encryption function that takes salt and plain text, returning the encrypted string.

public Func<string, string, string?> EncryptString { get; set; }

Property Value

Func<string, string, string>