Documentation
¶
Index ¶
- func EnvDefault(nm string, defs ...string) string
- func GenerateRSAKey(bits int) error
- func HomePath() string
- func Md5String(data string) string
- func NewXid() string
- func NewXid64() string
- func RSADecrypt(cipherText []byte, privateKey interface{}) ([]byte, error)
- func RSAEncrypt(plainText []byte, publicKey interface{}) ([]byte, error)
- func RSAGetSign(data []byte, privateKey interface{}) ([]byte, error)
- func RSALoadKey(o interface{}) (rt *pem.Block, rterr error)
- func RSAVerifySign(data, sign []byte, publicKey interface{}) error
- func RandomString(l int) string
- type Map
- func (e *Map) Get(key string) (interface{}, bool)
- func (e *Map) GetBool(key string) bool
- func (e *Map) GetFloat(key string) (float64, error)
- func (e *Map) GetInt(key string) (int64, error)
- func (e *Map) GetString(key string) string
- func (e *Map) Map() map[string]interface{}
- func (e *Map) Set(key string, val interface{})
- func (e *Map) ToBytes() []byte
- func (e *Map) ToString() string
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvDefault ¶
func RSADecrypt ¶
RSADecrypt RSA解密
func RSAEncrypt ¶
RSAEncrypt RSA加密
func RSAGetSign ¶
func RSALoadKey ¶
func RSAVerifySign ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.