0.0.20240113 • Published 4 months ago

@ndn/ndnsec v0.0.20240113

Weekly downloads
46
License
ISC
Repository
github
Last release
4 months ago

@ndn/ndnsec

This package is part of NDNts, Named Data Networking libraries for the modern web.

SafeBag type allows importing and exporting private keys in ndn-cxx SafeBag format. SafeBag encodes the private key as EncryptedPrivateKeyInfo ASN.1 structure, which may use one of many encryption algorithms. The implementation for browsers only supports PBES2(PBKDF2(HMAC-SHA256),AES-256-CBC) encryption algorithm, which appears to be the default in OpenSSL 1.1.1.

NdnsecKeyChain type can access keys and certificates in ndn-cxx KeyChain. It works by invoking the ndnsec command. This feature only works in Node.js.