Skip to content

Releases: dromara/dongle

v1.1.6

12 Oct 01:22
Compare
Choose a tag to compare
  • [chore] Use io.CopyBuffer to simplify streaming processing logic
  • [chore] Optimize tea encryption algorithm to support different block modes and padding modes
  • [feat] Add xtea encryption algorithm support, including standard processing and streaming processing

Full Changelog: v1.1.5...v1.1.6

v1.1.5

01 Oct 12:34
Compare
Choose a tag to compare
  • [fix] Fix bug where symmetric encryption algorithms incorrectly perform padding on block modes that don't require padding (such as CFB/OFB/CTR/GCM, etc.), causing encryption/decryption errors #29

Full Changelog: v1.1.4...v1.1.5

v1.1.4

24 Sep 01:26
Compare
Choose a tag to compare
  • [chore] Change method receivers from pointer to value to prevent property pollution when using global default instances, with no impact on caller API
  • [feat] Add twofish encryption algorithm support, including standard processing and streaming processing

Full Changelog: v1.1.3...v1.1.4

v1.1.3

15 Sep 01:35
Compare
Choose a tag to compare
  • [chore] Optimize 3DES symmetric encryption algorithm compatibility with 16-byte keys

  • [chore] Optimize DES symmetric encryption algorithm validation for unsupported GCM mode

  • [chore] Optimize 3DES symmetric encryption algorithm validation for unsupported GCM mode

  • [chore] Optimize Blowfish symmetric encryption algorithm validation for unsupported GCM mode

  • [chore] Update testify dependency to v1.11.1

  • [feat] Add Salsa20 encryption algorithm support, including standard processing and streaming processing

Full Changelog: v1.1.2...v1.1.3

v1.1.2

08 Sep 02:37
Compare
Choose a tag to compare
  • [refactor] Encoding/decoding support customizing file stream buffer size via coding.BufferSize global variable

  • [refactor] Encryption/decryption support customizing file stream buffer size via crypto.BufferSize global variable

  • [refactor] Hash/Hmac algorithms support customizing file stream buffer size via hash.BufferSize global variable

  • [feat] Add Blake2b hash algorithm support, including blake2b-256, blake2b-384 and blake2b-512

  • [feat] Add Blake2s hash algorithm support, including blake2s-128 and blake2s-256

  • [feat] Add ChaCha20 encryption algorithm support

  • [feat] Add ChaCha20Poly1305 encryption algorithm support

Full Changelog: v1.1.1...v1.1.2

v1.1.1

01 Sep 01:34
Compare
Choose a tag to compare
  • [refactor] Symmetric encryption algorithms changed from ByXXX(cipher.XXXCipher) to ByXXX(*cipher.XXXCipher)

  • [refactor] Change toolkit package name from utils to util

  • [refactor] Encoding/decoding, encryption/decryption, Hash/Hmac, signature/verification support true streaming processing

  • [refactor] When input data is empty, return empty data directly without executing subsequent operations

  • [feat] Add ED25519 digital signature and verification support

  • [feat] Add SM3 hash algorithm support

  • [feat] Add mock/hash.go to simulate errors in hash.Hash interface

  • [feat] coding/morse/morse.go adds support for spaces, punctuation, and special characters

v1.1.0

23 Aug 07:18
Compare
Choose a tag to compare

⚠️ This is a breaking change version, please upgrade with caution, but it is strongly recommended to upgrade

  • [refactor] Delete BySafeURL encoding/decoding method

  • [refactor] Delete Sm3 hash algorithm (hash) and message authentication code algorithm (hmac)

  • [refactor] Rename ByBase64URL encoding/decoding method to ByBase64Url

  • [refactor] Hash algorithm (hash) calling method changed from dongle.Encrypt.ByXXX() to dongle.Hash.ByXXX()

  • [refactor] Message authentication code algorithm (hmac) calling method changed from dongle.Encrypt.ByHmacXXX() to dongle.Hash.WithKey().ByXXX()

  • [refactor] Refactor AES, DES, 3DES, Blowfish and other symmetric encryption/decryption methods, uniformly use cipher.NewXXXCipher()

  • [refactor] Refactor RSA and other asymmetric encryption/decryption methods, uniformly use keypair.NewXXXKeyPair()

  • [feat] Add support for file stream encoding/decoding, encryption/decryption, Hash/HMAC, signature/verification

  • [feat] Add new ByBase32Hex encoding/decoding method

  • [feat] Add support for base32/base32Hex encoding custom character

  • [feat] Add support for base45 encoding custom character

  • [feat] Add support for base62 encoding custom character

  • [feat] Add support for base64/base64Url encoding custom character

v1.0.1

22 Nov 07:29
Compare
Choose a tag to compare
  • Allow custom alphabet for ByBase62 #18
  • Add WithKey(key []byte) and WithIV(iv []byte) method for Cipher struct
  • Change privateKey and publicKey type from interface to []byte for ByEd25519,ByRsa
  • Change key and iv type from interface to []byte for ByAes,ByDes,By3des,ByBlowfish
  • Change key type from interface to []byte for ByHmacMd2,ByHmacMd4,ByHmacMd5,ByHmacSha1,ByHmacSha3,ByHmacSha224,ByHmacSha256,ByHmacSha384,ByHmacSha512,ByHmacRipemd160,ByHmacSm3
  • Remove Chinese annotations

v1.0.0

11 Nov 08:11
Compare
Choose a tag to compare
  • Fixed AES/ECB/PCKS5padding panic #21
  • Changed repository and badge url

v0.2.8

05 Feb 11:22
Compare
Choose a tag to compare
  • Add comment for openssl package
  • Add openssl.RSA.FormatPublicKey() method, format public key, add header, tail and newline character
  • Add openssl.RSA.FormatPrivateKey() method, format private key, add header, tail and newline character
  • Add openssl.RSA.CompressKey() method, remove head, tail and newline character