Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@ewert-online/re-crypt

1.2.0 • Public • Published

What is it?

Secure Hash Algorithms implemented in ReasonML based on FIPS180-4

What state is it in?

Complete

  • SHA-1
  • SHA224
  • SHA256
  • SHA-384
  • SHA512

How do I install it?

yarn add @ewert-online/re-crypt

or

npm install @ewert-online/re-crypt --save

Then add @ewert-online/re-crypt as a dependency to bsconfig.json:

"bs-dependencies": [
+  "@ewert-online/re-crypt"
]

How do I use it?

SHA-1

let hash = ReCrypt.Sha1.make("unicorn");
/* 84de6753b298abd027fcd1d790eade2413eafb5a */

SHA224

let hash = ReCrypt.Sha224.make("unicorn");
/* 983d515094574856a57db3a13741f0a65509bb640bfa551e78fa01d9 */

SHA256

let hash = ReCrypt.Sha256.make("unicorn");
/* c6cb50e7eea0df1fd3eaf52ada2358f5423afd7c0b5ee2395231a9b3208ffcaf */

SHA-384

let hash = ReCrypt.Sha384.make("unicorn");
/* de41efa2be0844783ea107630a79246fb1f7b3ab97b35c5e4b70130804f876f64b645c1064a775507a7ac3be457539f2 */

SHA512

let hash = ReCrypt.Sha512.make("unicorn");
/* e233b19aabc7d5e53826fb734d1222f1f0444c3a3fc67ff4af370a66e7cadd2cb24009f1bc86f0bed12ca5fcb226145ad10fc5f650f6ef0959f8aadc5a594b27 */

Install

npm i @ewert-online/re-crypt

DownloadsWeekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

87.6 kB

Total Files

35

Last publish

Collaborators

  • avatar