Releases: dromara/dongle
v1.1.6
- [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
v1.1.4
- [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
-
[chore] Optimize
3DES
symmetric encryption algorithm compatibility with16
-byte keys -
[chore] Optimize
DES
symmetric encryption algorithm validation for unsupportedGCM
mode -
[chore] Optimize
3DES
symmetric encryption algorithm validation for unsupportedGCM
mode -
[chore] Optimize
Blowfish
symmetric encryption algorithm validation for unsupportedGCM
mode -
[chore] Update
testify
dependency tov1.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
-
[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, includingblake2b-256
,blake2b-384
andblake2b-512
-
[feat] Add
Blake2s
hash algorithm support, includingblake2s-128
andblake2s-256
-
[feat] Add
ChaCha20
encryption algorithm support -
[feat] Add
ChaCha20Poly1305
encryption algorithm support
Full Changelog: v1.1.1...v1.1.2
v1.1.1
-
[refactor] Symmetric encryption algorithms changed from
ByXXX(cipher.XXXCipher)
toByXXX(*cipher.XXXCipher)
-
[refactor] Change toolkit package name from
utils
toutil
-
[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 inhash.Hash
interface -
[feat]
coding/morse/morse.go
adds support for spaces, punctuation, and special characters
v1.1.0
⚠️ 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 toByBase64Url
-
[refactor] Hash algorithm (
hash
) calling method changed fromdongle.Encrypt.ByXXX()
todongle.Hash.ByXXX()
-
[refactor] Message authentication code algorithm (
hmac
) calling method changed fromdongle.Encrypt.ByHmacXXX()
todongle.Hash.WithKey().ByXXX()
-
[refactor] Refactor
AES
,DES
,3DES
,Blowfish
and other symmetric encryption/decryption methods, uniformly usecipher.NewXXXCipher()
-
[refactor] Refactor
RSA
and other asymmetric encryption/decryption methods, uniformly usekeypair.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
- Allow custom alphabet for
ByBase62
#18 - Add
WithKey(key []byte)
andWithIV(iv []byte)
method forCipher
struct - Change
privateKey
andpublicKey
type frominterface
to[]byte
forByEd25519
,ByRsa
- Change
key
andiv
type frominterface
to[]byte
forByAes
,ByDes
,By3des
,ByBlowfish
- Change
key
type frominterface
to[]byte
forByHmacMd2
,ByHmacMd4
,ByHmacMd5
,ByHmacSha1
,ByHmacSha3
,ByHmacSha224
,ByHmacSha256
,ByHmacSha384
,ByHmacSha512
,ByHmacRipemd160
,ByHmacSm3
- Remove Chinese annotations
v1.0.0
v0.2.8
- 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