GetPublicKeyString return the user public key
()
| 26 | |
| 27 | // GetPublicKeyString return the user public key |
| 28 | func (u *User) GetPublicKeyString() string { |
| 29 | return crypto.Base64Encode.EncodeToString(u.PublicKey) |
| 30 | } |
| 31 | |
| 32 | // PublicKeyEncrypt return encrypted public key |
| 33 | func (u *User) PublicKeyEncrypt(data []byte) []byte { |
no outgoing calls
no test coverage detected