Correction to README.md (#71)
This commit is contained in:
parent
fd9e7b40a9
commit
475db8b1cb
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ sessionKey, err := crypto.GenerateSessionKey()
|
|||
keyPacket, err := publicKeyRing.EncryptSessionKey(sessionKey) // Will encrypt to all the keys in the keyring
|
||||
keyPacketSymm, err := crypto.EncryptSessionKeyWithPassword(sessionKey, password)
|
||||
```
|
||||
`KeyPacket` is a `[]byte` containing the session key encrypted with the private key or password.
|
||||
`KeyPacket` is a `[]byte` containing the session key encrypted with the public key or password.
|
||||
|
||||
```go
|
||||
decodedKeyPacket, err := privateKeyRing.DecryptSessionKey(keyPacket) // Will decode with the first valid key found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue