Refactor(RSACryptographer): Entfernte Pem initter Methode.
- PrivateKeyPem initter Methode zu RSADecryptor hinzugefügt. - PublicKeyPem getter und initter Methoden zu RSAEncryptor hinzugefügt.
This commit is contained in:
@@ -3,19 +3,11 @@
|
||||
namespace DigitalData.Core.Security
|
||||
{
|
||||
public class RSACryptographer
|
||||
{
|
||||
internal RSACryptographer() { }
|
||||
|
||||
public required string Pem
|
||||
{
|
||||
init
|
||||
{
|
||||
_rsa.ImportFromPem(value);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
public required RSAEncryptionPadding Padding { get; init; }
|
||||
|
||||
protected readonly RSA _rsa = RSA.Create();
|
||||
|
||||
internal RSACryptographer() { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user