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 tea encryption and decryption
- Add support for bcrypt signature and verification
- Add cipherMode, cipherPadding and pkcsVersion type aliases
- Fix known bugs
- Improve unit test coverage to 100%
Feature list
- [x] Encoding and decoding by Hex
- [x] Encoding and decoding by Base16
- [x] Encoding and decoding by Base32
- [x] Encoding and decoding by Base58
- [x] Encoding and decoding by Base62
- [x] Encoding and decoding by Base64
- [x] Encoding and decoding by Base64URL
- [x] Encoding and decoding by SafeURL
- [x] Encoding and decoding by Base85
- [x] Encoding and decoding by Base91
- [x] Encoding and decoding by Base100
- [x] Encryption by Md4
- [x] Encryption by Hmac-md4
- [x] Encryption by Md5
- [x] Encryption by Hmac-md5
- [x] Encryption by Sha1
- [x] Encryption by Hmac-sha1
- [x] Encryption by Sha224
- [x] Encryption by Hmac-sha224
- [x] Encryption by Sha256
- [x] Encryption by Hmac-sha256
- [x] Encryption by Sha384
- [x] Encryption by Hmac-sha384
- [x] Encryption by Sha512
- [x] Encryption by Hmac-sha512
- [ ] Encryption by Rc2
- [x] Encryption by Rc4
- [ ] Encryption by Rc5
- [ ] Encryption by Rc6
- [x] Encryption and decryption by Tea
- [ ] Encryption and decryption by Xtea
- [x] Encryption and decryption by Aes with ECB/CBC/CTR/CFB/OFB mode and No/Zero/PKCS5/PKCS7 padding
- [x] Encryption and decryption by Des with ECB/CBC/CTR/CFB/OFB mode and No/Zero/PKCS5/PKCS7 padding
- [x] Encryption and decryption by 3des with ECB/CBC/CTR/CFB/OFB mode and No/Zero/PKCS5/PKCS7 padding
- [x] Encryption and decryption by Rsa with PKCS1/PKCS8 version
- [ ] Encryption and decryption by Ecc
- [ ] Encryption and decryption by Sm2
- [x] Encryption by Sm3
- [ ] Encryption and decryption by Sm4
- [ ] Encryption and decryption by Sm7
- [ ] Encryption and decryption by Sm9
- [x] Sign and verify by Bcrypt
- [ ] Sign and verify by Rsa
- [ ] Sign and verify by Dsa