Paseto.NET, a Paseto (Platform-Agnostic Security Tokens) implementation for .NET
Features
v1.local
v1.public
v2.local
v2.public
β
βοΈ
βοΈ
βοΈ
Usage
Generating keypair
stringsecretKey="YJExjGFZvdbSKTeVgLUQFupOzFWfSlRm";// The secret key must have 32 chars.byte[]hashSeed= Encoding.ASCII.GetBytes(secretKey);// Convert it into byte arraybyte[]privateKey=newbyte[64];byte[]publicKey=newbyte[32];
Ed25519.KeyPairFromSeed(out publicKey,out privateKey, hashSeed);