Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@pashoo2/crypto-utilities

pashoo234MIT0.0.7TypeScript support: included

Utilities for a data signing and verification, encryption and decryption, a password generation with a salt, crypto keys generation, serialization, parsing of them. Written in Typescript both for a browser and NodeJS.

web crypto, nodejs crypto, typescript crypto, typescript, crypto utilities, encryption, decryption, data encryption, data decryption, sign, verify, data signing, data verification, password, password encryption, password with salt, crypto key, crypto key serialization, crypto key parsing, crypto key import, crypto key export

readme

A variety of utilities for simplification work with data encryption. These utilities written in Typescript and can be used both with NodeJS or a browser. It uses WebCrypto API under the hood.

Utilities alow you to do such stuff like:

  • generate/import/export of a crypto key,
  • sign data by crypto key and than verify it,
  • encrypt/decrypt some meaningful data by a crypto key or a password,
  • generate a crypto key for a password,
  • calculate a hash for data verification.

With these utilities you can easily protect data on a client side and send it a safe way to anyone. You can just verify whether data was created by a certain user. Or just for storing data in a browser's LocalStorage in a safe way by protecting it with a password. You can data sharing p2p with a certain amount of confidence it wont be read by anyone without a permission to do that, like it does in a blockchain.

See docs