Dongle is a simple, semantic and developer-friendly golang package for encoding&decoding and encryption&decryption.
Dongle
has been included by awesome-go, if you think it is helpful, please give me a star
github.com/golang-module/dongle
Change log
- 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()
Feature list
- [ √ ] Encoding and decoding by Hex
- [ √ ] Encoding and decoding by Base16
- [ √ ] Encoding and decoding by Base32
- [ √ ] Encoding and decoding by Base58
- [ √ ] Encoding and decoding by Base62
- [ √ ] Encoding and decoding by Base64
- [ √ ] Encoding and decoding by Base64URL
- [ √ ] Encoding and decoding by SafeURL
- [ √ ] Encoding and decoding by Base85
- [ √ ] Encoding and decoding by Base91
- [ √ ] Encoding and decoding by Base100
- [ √ ] Encoding and decoding by Morse
- [ √ ] Encryption by Md2
- [ √ ] Encryption by Md4
- [ √ ] Encryption by Md5
- [ √ ] Encryption by Sha1
- [ √ ] Encryption by Sha3-224
- [ √ ] Encryption by Sha3-256
- [ √ ] Encryption by Sha3-384
- [ √ ] Encryption by Sha3-512
- [ √ ] Encryption by Sha224
- [ √ ] Encryption by Sha256
- [ √ ] Encryption by Sha384
- [ √ ] Encryption by Sha512
- [ √ ] Encryption by Sha512-224
- [ √ ] Encryption by Sha512-256
- [ √ ] Encryption by Ripemd160
- [ √ ] Encryption by Hmac-md2
- [ √ ] Encryption by Hmac-md4
- [ √ ] Encryption by Hmac-md5
- [ √ ] Encryption by Hmac-sha1
- [ √ ] Encryption by Hmac-sha3-224
- [ √ ] Encryption by Hmac-sha3-256
- [ √ ] Encryption by Hmac-sha3-384
- [ √ ] Encryption by Hmac-sha3-512
- [ √ ] Encryption by Hmac-sha224
- [ √ ] Encryption by Hmac-sha256
- [ √ ] Encryption by Hmac-sha384
- [ √ ] Encryption by Hmac-sha512
- [ √ ] Encryption by Hmac-sha512-224
- [ √ ] Encryption by Hmac-sha512-256
- [ √ ] Encryption by Hmac-ripemd160
- [ √ ] Encryption by Hmac-sm3
- [ ] Encryption and decryption by Rc2
- [ √ ] Encryption and decryption by Rc4
- [ ] Encryption and decryption by Rc5
- [ ] Encryption and decryption by Rc6
- [ √ ] Encryption and decryption by Tea
- [ ] Encryption and decryption by Xtea
- [ √ ] Encryption and decryption by Aes
- [ √ ] Encryption and decryption by Des
- [ √ ] Encryption and decryption by 3Des
- [ √ ] Encryption and decryption by Rsa
- [ ] Encryption and decryption by Ecc
- [ ] Encryption and decryption by Sm2
- [ √ ] Encryption by Sm3
- [ ] Encryption and decryption by Sm4
- [ ] Encryption and decryption by Sm7
- [ ] Encryption and decryption by Sm9
- [ √ ] Sign and verify by Bcrypt
- [ √ ] Sign and verify by Ed25519
- [ √ ] Sign and verify by Rsa
- [ ] Sign and verify by Dsa