Documentation ¶
Index ¶
- func AesDecrypt(cryted string, key string) (string, error)
- func AesDecryptByte(cryted string, key string) ([]byte, error)
- func AesEncrypt(orig string, key string) (string, error)
- func AesEncryptByte(origData []byte, key string) (string, error)
- func GenRsaKey(bits int) (string, string, error)
- func MD5(str string) string
- func MD5Equal(a, md string) bool
- func RsaDecrypt(ciphertext, privateKey []byte) ([]byte, error)
- func RsaEncrypt(origData, publicKey []byte) ([]byte, error)
- func Sha1(str string) string
- func Sha1Equal(a, sh string) bool
- func Sha256(str string) string
- func Sha256Equal(a, sh string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha256Equal ¶ added in v0.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.