mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-02 00:55:27 +08:00
feat: 实现数据库备份与恢复
This commit is contained in:
@@ -68,7 +68,7 @@ func GenerateRSAKey(bits int) (string, string, error) {
|
||||
return publicKeyStr, privateKeyStr, err
|
||||
}
|
||||
//创建一个pem.Block结构体对象
|
||||
publicBlock := pem.Block{Type: "RSA Public Key", Bytes: X509PublicKey}
|
||||
publicBlock := pem.Block{Type: "PUBLIC KEY", Bytes: X509PublicKey}
|
||||
|
||||
publicBuf := new(bytes.Buffer)
|
||||
pem.Encode(publicBuf, &publicBlock)
|
||||
|
||||
Reference in New Issue
Block a user