mirror of
https://github.com/ldqk/Masuit.Tools.git
synced 2026-10-28 20:33:04 +08:00
24 lines
485 B
C#
24 lines
485 B
C#
namespace Masuit.Tools.Security;
|
|
|
|
/// <summary>
|
|
/// RSA密钥对
|
|
/// </summary>
|
|
public class RsaKey
|
|
{
|
|
/// <summary>
|
|
/// 公钥
|
|
/// </summary>
|
|
public string PublicKey { get; protected internal set; }
|
|
|
|
/// <summary>
|
|
/// 私钥
|
|
/// </summary>
|
|
public string PrivateKey { get; protected internal set; }
|
|
|
|
public void Deconstruct(out string publicKey, out string privateKey)
|
|
{
|
|
publicKey = PublicKey;
|
|
privateKey = PrivateKey;
|
|
}
|
|
}
|