Documentation ¶
Index ¶
- Constants
- Variables
- func BcryptCheck(password, hash string) bool
- func BcryptHash(password string) string
- func ECCDecrypt(cipher []byte, prvKey *ecies.PrivateKey) (string, error)
- func ECCEncrypt(plain string, pubKey *ecies.PublicKey) ([]byte, error)
- func GenerateRsaKeys() (string, string)
- func MD5V(str []byte, b ...byte) string
- func Md5v(str string, salt string) string
- func Md5vMulti(str string, salt string, iteration int) string
- func Sha256v(str string, salt string) string
- type Aes
Constants ¶
View Source
const (
RSA_KEY_SIZE = 1024
)
Variables ¶
View Source
var ( AesECB = aesECBImpl{} AesCBC = aesCBCImpl{} AesCFB = aesCFBImpl{} AesGCM = aesGCMImpl{} )
Functions ¶
func ECCDecrypt ¶
func ECCDecrypt(cipher []byte, prvKey *ecies.PrivateKey) (string, error)
ECCDecrypt 椭圆曲线解密
func ECCEncrypt ¶
ECCEncrypt 椭圆曲线加密
func GenerateRsaKeys ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.