Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/okandavut/hencrypt
A small library that encrypts and decrypts string values with key.
https://github.com/okandavut/hencrypt
coveralls encrpytion istanbul nodejs npm npm-package travis-ci
Last synced: 2 days ago
JSON representation
A small library that encrypts and decrypts string values with key.
- Host: GitHub
- URL: https://github.com/okandavut/hencrypt
- Owner: okandavut
- License: mit
- Created: 2020-09-20T15:23:44.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T05:36:45.000Z (about 4 years ago)
- Last Synced: 2024-11-04T17:27:06.031Z (15 days ago)
- Topics: coveralls, encrpytion, istanbul, nodejs, npm, npm-package, travis-ci
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hencrypt
- Size: 34.2 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hencrypt [![Build Status](https://travis-ci.org/okandavut/hencrypt.svg?branch=master)](https://travis-ci.org/okandavut/hencrypt) [![Coverage Status](https://coveralls.io/repos/github/okandavut/hencrypt/badge.svg?branch=master)](https://coveralls.io/github/okandavut/hencrypt?branch=master)
A small library that encrypts and decrypts string values with key.
## Installation
`npm install @okandavutcom/hencrypt`
## Usage
const { encrypt } = require('@okandavutcom/hencrypt');
var result = encrypt("the secret string","mySecretSalt");
// Output should be `098f6bcd4621d373cade4e832627b4f6`
---
const { decrypt } = require('@okandavutcom/hencrypt');
var result = decrypt('7c606d287b6d6b7a6d7c287b7c7a61666f','mySecretSalt')
// Output should be `the secret string`
## Tests
`npm test`
## Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
## Technologies
- JavaScript
- Mocha for testing
- Istanbul for coverage of tests.
- Travis for continuous integration
- Coveralls for check coverage after every build