mirror of
https://github.com/unti-io/go-utils.git
synced 2025-10-07 01:03:04 +08:00
[v1.4.1]
This commit is contained in:
@@ -330,7 +330,7 @@ func (this *RSAStruct) Decrypt(privateKey, text string) (result *RSAResponse) {
|
||||
}
|
||||
|
||||
// GenPublicKey - 给定 RSA 公钥字符串格式化为标准头部和尾部
|
||||
func (this *RSAResponse) GenPublicKey(key string) (string, error) {
|
||||
func (this *RSAStruct) GenPublicKey(key string) (string, error) {
|
||||
|
||||
const lineLength = 64
|
||||
var builder strings.Builder
|
||||
@@ -356,7 +356,7 @@ func (this *RSAResponse) GenPublicKey(key string) (string, error) {
|
||||
}
|
||||
|
||||
// GenPrivateKey - 给定 RSA 私钥字符串格式化为标准头部和尾部
|
||||
func (this *RSAResponse) GenPrivateKey(key string) (string, error) {
|
||||
func (this *RSAStruct) GenPrivateKey(key string) (string, error) {
|
||||
|
||||
const lineLength = 64
|
||||
var builder strings.Builder
|
||||
|
Reference in New Issue
Block a user