Skip to content

Commit

Permalink
RIPEMD128
Browse files Browse the repository at this point in the history
Add RIPEMD128 algorithm support to crypto-js module.
Algorithm is taken from tomyun/crypto-js#2
  • Loading branch information
terotarvainen-soikea committed Aug 9, 2018
1 parent 0596fae commit 8348c3a
Show file tree
Hide file tree
Showing 6 changed files with 1,574 additions and 410 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# crypto-js

JavaScript library of crypto standards.
Fork of JavaScript library of crypto standards with added RIPEMD128 support.
RIPEMD128 algorithm taken from https://github.com/tomyun/crypto-js/issues/2.

## Node.js (Install)

Expand All @@ -15,6 +16,18 @@ npm install crypto-js

### Usage

ES6 import for typical API call signing use case:

```javascript
import sha256 from 'crypto-js/sha256';
import hmacSHA512 from 'crypto-js/hmac-sha512';
import Base64 from 'crypto-js/enc-base64';

const message, nonce, path, privateKey; // ...
const hashDigest = sha256(nonce + message);
const hmacDigest = Base64.stringify(hmacSHA512(path + hashDigest, privateKey));
```

Modular include:

```javascript
Expand Down Expand Up @@ -152,6 +165,7 @@ console.log(decryptedData);
- ```crypto-js/hmac-sha512```
- ```crypto-js/hmac-sha384```
- ```crypto-js/hmac-sha3```
- ```crypto-js/hmac-ripemd128```
- ```crypto-js/hmac-ripemd160```

---
Expand Down
Loading

0 comments on commit 8348c3a

Please sign in to comment.