You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
697 B
22 lines
697 B
using System.Text;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.Security;
|
|
using Volo.Abp.Security.Encryption;
|
|
|
|
namespace LINGYUN.Abp.Encryption.Console
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpSecurityModule))]
|
|
public class AbpEncryptionConsoleModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpStringEncryptionOptions>(options =>
|
|
{
|
|
options.DefaultPassPhrase = "s46c5q55nxpeS8Ra";
|
|
options.InitVectorBytes = Encoding.ASCII.GetBytes("s83ng0abvd02js84");
|
|
options.DefaultSalt = Encoding.ASCII.GetBytes("sf&5)s3#");
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|