A simple, semantic and developer-friendly golang package for encoding&decoding and encryption&decryption
openssl
packageopenssl.RSA.FormatPublicKey()
method, format public key, add header, tail and newline characteropenssl.RSA.FormatPrivateKey()
method, format private key, add header, tail and newline characteropenssl.RSA.CompressKey()
method, remove head, tail and newline characteropenssl
package for certificatersa
package into openssl
packagetea
support for long plaintext encryption and decryptionempty string
padding modegithub.com/tjfoc/gmsm/sm3
to github.com/emmansun/gmsm/sm3
encrypt
method from encrypter.go
to cipher.go
, decrypt
method from decrypter.go
to cipher.go
invalidTeaSrcError
、invalidModeError
and invalidPaddingError
rsa
support for long plaintext private key encryption
and public key decryption
split()
to bytesSplit()
and remove from rsa.go
to dongle/rsa.go
invalidRsaHashError
from errors.go
to dongle/rsa.go
v0.4.0
base45
encoding and decodingblake2b-256
, blake2b-384
, blake2b-512
hash encryptionblake2s-256
hash encryptionrsa
support for more than 117 bytes long plaintext encryption and decryptionshake128
hash algorithmshake256
hash algorithmblowfish
encryption and decryptionAnsiX923
and ISO97971
padding modesencode.go
to encoder.go
, decode.go
to decoder.go
, encrypt.go
to encrypter.go
, sign.go
to signer.go
, verify.go
to verifier.go
isSupportedHash()
to (receiver).isRsaSupported()
in rsa.go
carbon.RAW
to carbon.Raw
, carbon.HEX
to carbon.Hex
, carbon.BASE64
to carbon.Base64
md2
hash algorithmhmac-md2
digest algorithmed25519
signature and verification #9ToBool()
method judgment in verify.go
encode
to encoder
decode
to decoder
encrypt
to encrypter
, add ToRawString()
, ToRawBytes()
methodsdecrypt
to decrypter
, add FromRawString()
, FromRawBytes()
methodssign
to signer
, add ToRawString() 和 ToRawBytes()
methodsverify
to verifier
, add FromRawString()
, FromRawBytes()
, ToBool()
methodssha3-224
, sha3-256
, sha3-384
, sha3-512
hmac-sha3-224
, hmac-sha3-256
, hmac-sha3-384
, hmac-sha3-512
sha512
, sha512-224
, sha512-256
hmac-sha512
, hmac-sha512-224
, hmac-sha512-256
rsa
signature and signature verificationbase58.go
, base62.go
, base91.go
, base100.go
to sub package/