Documentation ¶
Index ¶
- Constants
- func CreateKeys() (string, string)
- func DecodeString(s string) ([]byte, error)
- func EncodeToString(src []byte) string
- func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) []byte
- func NewConvert(title, symbol string, supports []string) db.ExecConvert
- func PrivateDecrypt(privstr string, encrypted string) (string, error)
- func PublicEncrypt(pubstr string, data string) (string, error)
- type XRsa
Constants ¶
View Source
const ( NameX = "common" RAccountX = "account" RTransactionX = "transaction" )
consts
View Source
const ( CharSet = "UTF-8" Base64Format = "UrlSafeNoPadding" RsaAlgorithmKeyType = "PKCS8" RsaAlgorithmSign = crypto.SHA256 // 定义支持的加密算法 RsaCrypto = "rsa" Encrypt = "encrypt" Template = "template" )
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
DecodeString returns the bytes represented by the base64 string s.
func EncodeToString ¶
EncodeToString returns the base64 encoding of src.
func MarshalPKCS8PrivateKey ¶
func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) []byte
func NewConvert ¶
func NewConvert(title, symbol string, supports []string) db.ExecConvert
NewConvert create
Types ¶
Click to show internal directories.
Click to hide internal directories.