Documentation
¶
Index ¶
Constants ¶
View Source
const ( CHAR_SET = "UTF-8" BASE_64_FORMAT = "UrlSafeNoPadding" RSA_ALGORITHM_KEY_TYPE = "PKCS8" RSA_ALGORITHM_SIGN = crypto.SHA256 )
Variables ¶
This section is empty.
Functions ¶
func CreateKeys ¶
生成密钥对
func MarshalPKCS8PrivateKey ¶
func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) []byte
Types ¶
type XRsa ¶
type XRsa struct {
// contains filtered or unexported fields
}
func (*XRsa) PrivateDecrypt ¶
private key decrypt
func (*XRsa) PublicEncrypt ¶
public key encode
Click to show internal directories.
Click to hide internal directories.