ektrah / nsec

A modern and easy-to-use cryptographic library for .NET 8+ based on libsodium
https://nsec.rocks
MIT License
374 stars 52 forks source link

How to export and save sharedsecret key #39

Closed matt1tk closed 3 years ago

matt1tk commented 3 years ago

Is it possible to save a key derived from a sharedsecret? From what I can tell it tells me it's not a supported format (since the keyformat options are all public/private keys, but a sharedsecret key is symmetric). Is there an easy way to save the key (to avoid recalculating on startup every time)? Thanks.

matt1tk commented 3 years ago

KeyBlobFormat.NSecSymmetricKey was right there... embarrassing