feat(RSAFactoryParams): Erstellt, um die Konfigurationen der RSA-Fabrik zu trennen
This commit is contained in:
27
DigitalData.Core.Security/RSAFactoryParams.cs
Normal file
27
DigitalData.Core.Security/RSAFactoryParams.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace DigitalData.Core.Security
|
||||
{
|
||||
public class RSAFactoryParams
|
||||
{
|
||||
public string EncryptedPrivateKeyFileTag { get; init; } = "enc-private";
|
||||
|
||||
public string PrivateKeyFileTag { get; init; } = "private";
|
||||
|
||||
public string PublicKeyFileTag { get; init; } = "public";
|
||||
|
||||
public string RSAKeyNameSeparator { get; init; } = "-_-";
|
||||
|
||||
public int KeySizeInBits { get; init; } = 2048;
|
||||
|
||||
public string PbePassword { internal get; init; } = Secrets.PBE_PASSWORD;
|
||||
|
||||
public PbeEncryptionAlgorithm PbeEncryptionAlgorithm { get; init; } = PbeEncryptionAlgorithm.Aes256Cbc;
|
||||
|
||||
public HashAlgorithmName PbeHashAlgorithmName { get; init; } = HashAlgorithmName.SHA256;
|
||||
|
||||
public int PbeIterationCount { get; init; } = 100_000;
|
||||
|
||||
public string EncryptedPrivateKeyPemLabel { get; init; } = "ENCRYPTED PRIVATE KEY";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user