-
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
$ hexo new "My New Post"
$ hexo deploy
// RsaEncryptBase64 使用 RSA 公钥加密数据, 返回加密后并编码为 base64 的数据
func RsaEncryptBase64(originalData, publicKey string) (string, error) {
block, _ := pem.Decode([]byte(publicKey))
pubKey, parseErr := x509.ParsePKIXPublicKey(block.Bytes)
if parseErr != nil {
fmt.Println(parseErr)
return "", errors.New("解析公钥失败")
}
encryptedData, err := rsa.EncryptPKCS1v15(rand.Reader, pubKey.(*rsa.PublicKey), []byte(originalData))
return base64.StdEncoding.EncodeToString(encryptedData), err
}
import torch
print(torch.__version__)
More info: Writing
Run server
$ hexo server
library(Seacut)
a <- (1,2,3,4)
More info: Server
Generate static files
$ hexo generate
More info: Generating
Deploy to remote sites
$ hexo deploy
More info: Deployment
