Rename conflicting methods (#20)
This commit is contained in:
parent
7e8dd9ab95
commit
4ef79f1d12
8 changed files with 21 additions and 20 deletions
|
|
@ -112,7 +112,7 @@ To encrypt binary data, reuse the key multiple times, or use more advanced modes
|
|||
```go
|
||||
import "github.com/ProtonMail/gopenpgp/constants"
|
||||
|
||||
var key = crypto.NewSymmetricKey("my secret password", constants.AES256)
|
||||
var key = crypto.NewSymmetricKeyFromToken("my secret password", constants.AES256)
|
||||
var message = crypto.NewPlainMessage(data)
|
||||
|
||||
// Encrypt data with password
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue