文件名称:paseto-dotnet:ase Paseto.NET,.NET的Paseto(与平台无关的安全令牌)实现
文件大小:899KB
文件格式:ZIP
更新时间:2024-06-05 17:33:56
dotnet dotnet-core netstandard paseto C#
Paseto.NET,.NET的 (与平台安全令牌)实现 特征 v1.local v1.public v2.local v2.public :cross_mark: :check_mark: :check_mark: :check_mark: 用法 生成密钥对 string secretKey = " YJExjGFZvdbSKTeVgLUQFupOzFWfSlRm " ; // The secret key must have 32 chars. byte [] hashSeed = Encoding . ASCII . GetBytes ( secretKey ); // Convert it into byte array byte [] privateKey = new byte [ 64 ]; byte [] publicKey = new byte [ 32 ]; Ed25519 . KeyPairFromSeed ( out p