Documentation ¶
Index ¶
- func AesDecrypt(decodeStr string, aesKey string, aesIv string) ([]byte, error)
- func AesDecryptKeyIv(decodeStr, key, iv string) ([]byte, error)
- func AesEncrypt(encodeStr string, aesKey string, aesIv string) (string, error)
- func AesEncryptKeyIv(encodeStr, key, iv string) (string, error)
- func BytesToPubKey(key []byte) (interface{}, error)
- func CiphertextLength(n int) int
- func DeCodeInt64(code string, salt string) (int64, error)
- func EnCodeInt64(id int64, salt string) (string, error)
- func Md5(s string) string
- func PubKeyToBytes(key *rsa.PublicKey) []byte
- func RSAKeyGenToBuf(bits int) ([]byte, []byte, error)
- func RSAKeyGenToKey(bits int) (*rsa.PrivateKey, error)
- func RsaPrivateKeyDecrypt(cipher []byte, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptKeyIv ¶
func AesEncryptKeyIv ¶
func BytesToPubKey ¶
func CiphertextLength ¶
func PubKeyToBytes ¶
func RSAKeyGenToKey ¶
func RSAKeyGenToKey(bits int) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.