Skip to content

Releases: hugoalh/symmetric-crypto-es

4.2.1

03 Jan 09:23
795c1ba
Compare
Choose a tag to compare

〰️ Changes

4.2.0

03 Jan 08:37
075f810
Compare
Choose a tag to compare

〰️ Changes

  • Add class SymmetricCryptor methods readEncryptedFile, readEncryptedTextFile, writeEncryptedFile, and writeEncryptedTextFile (@hugoalh)(N/A)
  • Cipher text decoder and encoder now allow asynchronously (@hugoalh)(N/A)
  • Improve runtime permission list (@hugoalh)(N/A)

4.1.0

08 Nov 04:45
93e52fa
Compare
Choose a tag to compare

〰️ Changes

  • Improve efficiency and performance (@hugoalh)(N/A)
  • Migrate and deprecate class SymmetricCryptor methods decryptFiles and encryptFiles to decryptFile and encryptFile (@hugoalh)(N/A)
  • Replace NodeJS interfaces with Deno interfaces (@hugoalh)(N/A)
  • Transfer ownership from hugoalh Studio (hugoalh-studio) to hugoalh (hugoalh) (@hugoalh)(N/A)
  • Update dependencies (@hugoalh)(N/A)

4.0.1

06 May 08:52
Compare
Choose a tag to compare

〰️ Changes

  • Fix default decoder and encoder fail to load when use this module via NPM (@hugoalh)(3d140cc)

4.0.0

06 May 08:36
Compare
Choose a tag to compare

🔦 Spotlights

  • Support algorithms selection: AES-CBC (Default, Original), AES-CTR, AES-GCM (@hugoalh)(N/A)
  • Support custom decoder and encoder (@hugoalh)(N/A)
  • Support deployments JSR, NPM (Original), and remote (@hugoalh)(N/A)
  • Support directly decrypt and encrypt files (@hugoalh)(N/A)
  • Support multiple layers decryption and encryption with different algorithm and passphrase (i.e.: key) (@hugoalh)(N/A)
  • Support targets Bun, Cloudflare Workers, Deno, and NodeJS (Original) (@hugoalh)(N/A)

💥 Break Changes

  • Change default decoder and encoder from Base64 to ASCII85 (@hugoalh)(N/A)
  • Change the way to create instance, use function createSymmetricCryptor instead of class SymmetricCryptor (@hugoalh)(N/A)
  • Multiple layers decryption and encryption require to define at the stage of create instance, and no longer available at the stage of decrypt or encrypt (@hugoalh)(N/A)
  • Refactor and replace NodeJS Crypto APIs (node:crypto) with JavaScript Web Crypto APIs (crypto.subtle) (@hugoalh)(N/A)

    ⚠️ Important

    This refactor cause it is not possible to compatible with any previous version, please make sure to decrypt everything firstly before upgrade to this version or next!

  • Remove class SymmetricCryptor all of the static methods (@hugoalh)(N/A)
  • Remove class SymmetricCryptor constructor (@hugoalh)(N/A)
  • Remove class SymmetricCryptor methods decryptMultipleLine, encryptMultipleLine, and its aliases (@hugoalh)(N/A)
  • Remove functions decrypt, decryptMultipleLine, encrypt, encryptMultipleLine, and its aliases (@hugoalh)(N/A)

〰️ Changes

  • Add class SymmetricCryptor methods decryptFile, decryptFiles, encryptFile, and encryptFiles to directly decrypt and encrypt files (@hugoalh)(N/A)
  • Passphrase (i.e.: key) no longer have any restriction (@hugoalh)(N/A)
  • Support data type of string (Original) and Uint8Array (@hugoalh)(N/A)
  • Support passphrase (i.e.: key) type of string (Original), ArrayBuffer, DataView, Uint8Array, Uint16Array, Uint32Array, and BigUint64Array (@hugoalh)(N/A)

3.0.1

15 Jan 03:14
Compare
Choose a tag to compare

〰️ Changes

3.0.0

11 Jan 09:51
Compare
Choose a tag to compare

💥 Break Changes

  • Change target NodeJS to >= v16.13.0 (@hugoalh)(N/A)

2.1.4

10 Nov 03:38
Compare
Choose a tag to compare

〰️ Changes

2.1.3

19 Apr 04:27
Compare
Choose a tag to compare
  • CHANGE: Improved error messages, arguments with range issues will now throw RangeError instead of TypeError
  • REMOVE: Removed dependency @hugoalh/advanced-determine

2.1.2

12 Apr 09:05
Compare
Choose a tag to compare
  • CHANGE: Updated dependency @hugoalh/advanced-determine from v10.3.0 to v10.3.2