Skip to content

Commit

Permalink
v3.0.7: 20240813: Dependencies, vernacular (docs), default hashing algo
Browse files Browse the repository at this point in the history
  • Loading branch information
jas- committed Aug 13, 2024
1 parent a51be5e commit da546e0
Show file tree
Hide file tree
Showing 5 changed files with 401 additions and 2,206 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kruptein 🐿️
kruptein
========
crypto; from `kruptein` to hide or conceal.

Expand All @@ -25,7 +25,7 @@ Options
Industry standards are used for the algorithm, hashing algorithm, key & IV sizes. The default key derivation
is pbkdf2, however use of the scrypt derivation function can be enabled.
* `algorithm`: (Optional) Cipher algorithm from `crypto.getCiphers()`. Default: `aes-256-gcm`.
* `hashing`: (Optional) Hash algorithm from `crypto.getHashes()`. Default: `sha512`.
* `hashing`: (Optional) Hash algorithm from `crypto.getHashes()`. Default: `sha384`.
* `encodeas`: (Optional) Output encoding. Currently supports `binary`, `hex`, & `base64`. Default: `base64`.
* `key_size`: (Optional) Key size bytes (should match block size of algorithm). Default: `32`
* `iv_size`: (Optional) IV size bytes. Default: `16`.
Expand Down Expand Up @@ -141,4 +141,4 @@ License
-------
This software is licensed under the [MIT License](https://github.com/jas-/kruptein/blob/master/LICENSE).

Copyright Jason Gerfen, 2019 to 2023.
Copyright Jason Gerfen, 2019 to 2024.
2 changes: 1 addition & 1 deletion lib/kruptein.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Kruptein {

// Set defaults if the user didn't supply any
this._algorithm = options.algorithm || "aes-256-gcm";
this._hashing = options.hashing || "sha512";
this._hashing = options.hashing || "sha384";
this._encodeas = options.encodeas || "base64";
this._use_asn1 = options.use_asn1 || true;

Expand Down
Loading

0 comments on commit da546e0

Please sign in to comment.