Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msfidelis/take-my-hash
Crypto.js helper - for lazy people (like me) :closed_lock_with_key: :key:
https://github.com/msfidelis/take-my-hash
crypto-library cryptojs helper-functions
Last synced: 28 days ago
JSON representation
Crypto.js helper - for lazy people (like me) :closed_lock_with_key: :key:
- Host: GitHub
- URL: https://github.com/msfidelis/take-my-hash
- Owner: msfidelis
- Created: 2017-09-26T12:10:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T16:31:28.000Z (about 7 years ago)
- Last Synced: 2024-10-02T09:18:02.219Z (about 1 month ago)
- Topics: crypto-library, cryptojs, helper-functions
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Take my Hash [![Build Status](https://travis-ci.org/pjbank/pjbank-js-sdk.svg?branch=master)](https://travis-ci.org/pjbank/pjbank-js-sdk) [![npm version](https://badge.fury.io/js/take-my-hash.svg)](https://badge.fury.io/js/take-my-hash)
Crypto.js helper - for lazy people (like me)## Quickstart
```bash
npm install --save take-my-hash
``````javascript
const tmh = require('take-my-hash');
```## AES
```javascript
let hash = tmh.AESEncrypt('my text', 'my key 123');
let rawText = tmh.AESDecrypt(hash, 'my key 123');console.log(hash, rawText);
```
## MD5
```javascript
let hash = tmh.md5('my text');
```## SHA1
```javascript
let hash = tmh.sha1('my text');
```## SHA224
```javascript
let hash = tmh.sha224('my text');
```## SHA256
```javascript
let hash = tmh.sha256('my text');
```## SHA384
```javascript
let hash = tmh.sha384('my text');
```## SHA3
```javascript
let hash = tmh.sha3('my text');
```## SHA512
```javascript
let hash = tmh.sha512('my text');
```