Class StringEncryptionService
Inheritance
object
StringEncryptionService
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Security.Encryption
Assembly: Volo.Abp.Security.dll
Syntax
public class StringEncryptionService : IStringEncryptionService, ITransientDependency
Constructors
StringEncryptionService(IOptions<AbpStringEncryptionOptions>)
Declaration
public StringEncryptionService(IOptions<AbpStringEncryptionOptions> options)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpStringEncryptionOptions> | options |
Properties
Options
Declaration
protected AbpStringEncryptionOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpStringEncryptionOptions |
Methods
Decrypt(string, string, byte[])
Declaration
public virtual string Decrypt(string cipherText, string passPhrase = null, byte[] salt = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cipherText | |
| string | passPhrase | |
| byte[] | salt |
Returns
| Type | Description |
|---|---|
| string |
Encrypt(string, string, byte[])
Declaration
public virtual string Encrypt(string plainText, string passPhrase = null, byte[] salt = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | plainText | |
| string | passPhrase | |
| byte[] | salt |
Returns
| Type | Description |
|---|---|
| string |