Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chris-rock/node-crypto-examples

Collection of nodejs crypto examples
https://github.com/chris-rock/node-crypto-examples

Last synced: 5 days ago
JSON representation

Collection of nodejs crypto examples

Awesome Lists containing this project

README

        

# node-crypto-examples

This repository is a collection of various scripts that illustrate the use of [crypto](http://nodejs.org/api/crypto.html) with nodejs. The goal of this repository is to ease the start and to enable a quick start for developers.

Currently the collections includes:

* [Encrypt and decrypt text](https://github.com/chris-rock/node-crypto-examples/blob/master/crypto-ctr.js)
* [Encrypt and decrypt buffers](https://github.com/chris-rock/node-crypto-examples/blob/master/crypto-buffer.js)
* [Encrypt and decrypt streams](https://github.com/chris-rock/node-crypto-examples/blob/master/crypto-stream.js)
* [Use GCM for authenticated encryption](https://github.com/chris-rock/node-crypto-examples/blob/master/crypto-gcm.js)
* [SHA 512 generation](https://github.com/chris-rock/node-crypto-examples/blob/master/sha-text.js)
* [SHA 512 and streams](https://github.com/chris-rock/node-crypto-examples/blob/master/sha-stream.js)

References:

* More details about the crypto examples are described at [Encrypt and decrypt content with Nodejs](http://lollyrock.com/articles/nodejs-encryption/).
* [SHA 512 Hashs with nodejs](http://lollyrock.com/articles/nodejs-sha512/)

## Contributing

1. Fork it ( https://github.com/chris-rock/node-encryption-examples/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## Author

- Author: Christoph Hartmann

## Licence

MIT