You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade crypto-js dependency to version 4.0.0. This version of crypto-js replaces Math.random() method with native crypto module, and will cause breaking changes in some environments that does not support native crypto module, like IE 10 earlier and React Native. If you are affected by these changes, please use SimpleCrypto ^2.5.0.
For full change-log, please refer to CHANGELOG file.
As the same with 2.4.1, but rollback crypto-js dependency to version 3.3.0 to maintain compatibility with environment that does not support native crypto module.
For full change-log, please refer to CHANGELOG file.
Fix a bug on type detection mechanism where a string that begins with number detected as number when decryption, thus cutting the rest of the string result (thanks @TransmissionsDev).
For full change-log, please refer to CHANGELOG file.
Added data type detection. Decryption process will now return data with its proper data type. For now, object, string, number and boolean are supported.
Added append() and update() functions, both to append and update the data buffer respectively.
Added overload functions for decrpyt() and encrypt().
Added initial support for encoding (see static variable SimpleCrypto.encoders). However, for now, it only supports UTF-8 even if you set another encoder.
Added chaining functions support. Functions that initially have no return, like append(), update(), setSecret(), setEncoder(), now will returning its instance.
Added static function SimpleCrypto.generateRandomString() and SimpleCrypto.generateRandomWordArray().
For full change-log, please refer to CHANGELOG file.