16 lines
445 B
C#
16 lines
445 B
C#
using DigitalData.Core.Abstractions.Security;
|
|
using System.Security.Cryptography;
|
|
|
|
namespace DigitalData.Core.Security
|
|
{
|
|
public class RSACryptographer : IRSACryptographer
|
|
{
|
|
public required virtual string Pem { get; init; }
|
|
|
|
public RSAEncryptionPadding Padding { get; init; } = RSAEncryptionPadding.OaepSHA256;
|
|
|
|
protected virtual RSA RSA { get; } = RSA.Create();
|
|
|
|
internal RSACryptographer() { }
|
|
}
|
|
} |