Skip to content

Releases: dromara/dongle

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

v0.2.7

01 Feb 00:06
Compare
Choose a tag to compare
  • Add openssl package for certificate
  • Separate some functions from rsa package into openssl package

v0.2.6

10 Jan 02:01
Compare
Choose a tag to compare
  • Add tea support for long plaintext encryption and decryption
  • Added support for empty string padding mode
  • Rename github.com/tjfoc/gmsm/sm3 to github.com/emmansun/gmsm/sm3
  • Move encrypt method from encrypter.go to cipher.go, decrypt method from decrypter.go to cipher.go
  • Remove invalidTeaSrcErrorinvalidModeError and invalidPaddingError

v0.2.5

04 Jan 14:04
Compare
Choose a tag to compare
  • Add rsa support for long plaintext private key encryption and public key decryption
  • Rename split() to bytesSplit() and remove from rsa.go to dongle/rsa.go
  • Remove invalidRsaHashError from errors.go to dongle/rsa.go
  • Upgrade golang.org/x/crypto version to v0.4.0
  • Fix comment errors

v0.2.4

30 Dec 01:54
Compare
Choose a tag to compare
  • Add support for base45 encoding and decoding
  • Add support for blake2b-256, blake2b-384, blake2b-512 hash encryption
  • Add support for blake2s-256 hash encryption
  • Add rsa support for more than 117 bytes long plaintext encryption and decryption

v0.2.3

27 Dec 07:03
Compare
Choose a tag to compare
  • Add support for shake128 hash algorithm
  • Add support for shake256 hash algorithm

v0.2.2

15 Dec 02:19
d6e4fb5
Compare
Choose a tag to compare
  • Add support for blowfish encryption and decryption
  • Add support for AnsiX923 and ISO97971 padding modes
  • Rename encode.go to encoder.go, decode.go to decoder.go, encrypt.go to encrypter.go, sign.go to signer.go, verify.go to verifier.go
  • Rename isSupportedHash() to (receiver).isRsaSupported() in rsa.go
  • Rename carbon.RAW to carbon.Raw, carbon.HEX to carbon.Hex, carbon.BASE64 to carbon.Base64

v0.2.1

10 Dec 02:40
4e01ac2
Compare
Choose a tag to compare
  • 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 in verify.go
  • Rename newEncoder() to NewEncoder(), newDecoder() to NewDecoder(), newEncrypter() to NewEncrypter(), newDecrypter() to NewDecrypter()