Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrivateKeyName = "tsm-private.pem" PublicKeyName = "tsm-public.pem" )
Variables ¶
View Source
var ( Db *sql.DB BasePath string )
View Source
var ( PriKey []byte PubKey []byte )
Functions ¶
func DecryptByPrivate ¶
DecryptByPrivate 私钥解密
func EncryptByPublic ¶
EncryptByPublic 公钥加密
Types ¶
Click to show internal directories.
Click to hide internal directories.