Show / Hide Table of Contents

Class AbpStringEncryptionOptions

Options used by IStringEncryptionService.

Inheritance
System.Object
AbpStringEncryptionOptions
Namespace: Volo.Abp.Security.Encryption
Assembly: Volo.Abp.Security.dll
Syntax
public class AbpStringEncryptionOptions : object

Constructors

AbpStringEncryptionOptions()

Declaration
public AbpStringEncryptionOptions()

Properties

DefaultPassPhrase

Default password to encrypt/decrypt texts. It's recommended to set to another value for security. Default value: "gsKnGZ041HLL4IM8"

Declaration
public string DefaultPassPhrase { get; set; }
Property Value
Type Description
System.String

DefaultSalt

Default value: Encoding.ASCII.GetBytes("hgt!16kl")

Declaration
public byte[] DefaultSalt { get; set; }
Property Value
Type Description
System.Byte[]

InitVectorBytes

This constant string is used as a "salt" value for the PasswordDeriveBytes function calls. This size of the IV (in bytes) must = (keysize / 8). Default keysize is 256, so the IV must be 32 bytes long. Using a 16 character string here gives us 32 bytes when converted to a byte array. Default value: Encoding.ASCII.GetBytes("jkE49230Tf093b42")

Declaration
public byte[] InitVectorBytes { get; set; }
Property Value
Type Description
System.Byte[]

Keysize

This constant is used to determine the keysize of the encryption algorithm. Default value: 256.

Declaration
public int Keysize { get; set; }
Property Value
Type Description
System.Int32

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft