0.0.5 • Published 2 years ago

@dweorh/oshu-crypto v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

��# oshu-crypto

It is a simple library for cryptography developed as a part of the Oshu-gun project.

Its purpose was to standardize the node and the browser interface and make all keys exchangeable without any extra work. Also, to make encryption of text or base64 encoded strings easy.

But its purpose is not to be extremely configurable or flexible. For it, you can use another project like Sodium.

oshu-crypto provides symmetrical encryption AES-GCM 256 and asymmetrical encryption RSA-OAEP 4096-bit key.

It uses native implementations depending on the context.

NodeJS Crypto

Web Crypto API

How to install it?

npm install @dweorh/oshu-crypto

How to use it?

Check the examples folder. Example01 is about symmetrical encryption. Example02 is about asymmetrical encryption.