Releases: dromara/dongle
Releases · dromara/dongle
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
v0.2.7
v0.2.6
- Add
tea
support for long plaintext encryption and decryption - Added support for
empty string
padding mode - Rename
github.com/tjfoc/gmsm/sm3
github.com/emmansun/gmsm/sm3
- Move
encrypt
method fromencrypter.go
tocipher.go
,decrypt
method fromdecrypter.go
tocipher.go
- Remove
invalidTeaSrcError
、invalidModeError
andinvalidPaddingError
v0.2.5
- Add
rsa
support for long plaintextprivate key encryption
andpublic key decryption
- Rename
split()
tobytesSplit()
and remove fromrsa.go
todongle/rsa.go
- Remove
invalidRsaHashError
fromerrors.go
todongle/rsa.go
- Upgrade golang.org/x/crypto version to
v0.4.0
- Fix comment errors
v0.2.4
v0.2.3
v0.2.2
- Add support for
blowfish
encryption and decryption - Add support for
AnsiX923
andISO97971
padding modes - Rename
encode.go
toencoder.go
,decode.go
todecoder.go
,encrypt.go
toencrypter.go
,sign.go
tosigner.go
,verify.go
toverifier.go
- Rename
isSupportedHash()
to(receiver).isRsaSupported()
inrsa.go
- Rename
carbon.RAW
tocarbon.Raw
,carbon.HEX
tocarbon.Hex
,carbon.BASE64
tocarbon.Base64
v0.2.1
- Add support for
md2
hash algorithm - Add support for
hmac-md2
digest algorithm - Add support for
ed25519
signature and verification #9 - Optimize the handling of decrypted ciphertext length errors #10
- Optimize
ToBool()
method judgment inverify.go
- Rename newEncoder() to NewEncoder(), newDecoder() to NewDecoder(), newEncrypter() to NewEncrypter(), newDecrypter() to NewDecrypter()