Developer 02 806bc01c17 refactor(PbePassword): CryptFactory.PbePassword.get privat und Secrets.PBE_PASSWORD intern gemacht.
- JsonIgnore-Attribut zu Secrets.PBE_PASSWORD hinzugefügt
 - ICryptFactory.PbePassword.get wurde entfernt.
2024-11-19 19:44:52 +01:00

30 lines
905 B
C#

using System.Security.Cryptography;
namespace DigitalData.Core.Abstractions.Security
{
public interface ICryptFactory
{
public int KeySizeInBits { get; init; }
public string PbePassword { init; }
public PbeEncryptionAlgorithm PbeEncryptionAlgorithm { get; init; }
public HashAlgorithmName PbeHashAlgorithmName { get; init; }
public int PbeIterationCount { get; init; }
public PbeParameters PbeParameters { get; }
public string EncryptedPrivateKeyPemLabel { get; init; }
string CreateRSAPrivateKeyPem(int? keySizeInBits = null);
string CreateEncryptedPrivateKeyPem(
int? keySizeInBits = null,
string? password = null,
PbeEncryptionAlgorithm? pbeEncryptionAlgorithm = null,
HashAlgorithmName? hashAlgorithmName = null,
int? iterationCount = null);
}
}