This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Currently, the async is not stable for production.
The sync librarie does not provide the possibility to use cipher.
The
crypto-js
librarie provides the ability to use cipher, padding, and mode which will improve the crypting.What
How
3 new parameters are now available to pass to the
createAsyncEncryptor
:cipher
: CryptoJSCore.kdf.OpenSSL is implemented with default valuesmode
: default -> Electronic Codebook block mode (from crypto-js documentation)padding
: default -> PKCS #5/7 padding strategyIf cipher the only true then mode and padding will be set to their default values.
Example
Notes
redux-persist-transform-encrypt
of encrypted data with default configcrypto-js
library