Any examples on using libsodium-net , saving keypairs, encrypt/decrypt files?
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Saving keypairs? Which keypairs? Which type of file are you using?
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
Saving keypairs? Which keypairs? Which type of file are you using?
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
Thanks for your reply. I figured this out
KeyPair keyPair = PublicKeyBox.GenerateKeyPair();
byte[] privateKey = keyPair.PrivateKey;
byte[] publicKey = keyPair.PublicKey;// save to file
File.WriteAllBytes(privateFilePath, privateKey);
File.WriteAllBytes(publicFilePath, publicKey);