mirror of
https://github.com/Luzifer/go-openssl.git
synced 2024-12-20 19:01:18 +00:00
Adhere to example name conventions
(enforced by `go vet`) Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
84e5195305
commit
08db5147e8
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ package openssl
|
|||
|
||||
import "fmt"
|
||||
|
||||
func ExampleEncryptString() {
|
||||
func ExampleOpenSSL_EncryptString() {
|
||||
plaintext := "Hello World!"
|
||||
passphrase := "z4yH36a6zerhfE5427ZV"
|
||||
|
||||
|
@ -16,7 +16,7 @@ func ExampleEncryptString() {
|
|||
fmt.Printf("Encrypted text: %s\n", string(enc))
|
||||
}
|
||||
|
||||
func ExampleDecryptString() {
|
||||
func ExampleOpenSSL_DecryptString() {
|
||||
opensslEncrypted := "U2FsdGVkX19ZM5qQJGe/d5A/4pccgH+arBGTp+QnWPU="
|
||||
passphrase := "z4yH36a6zerhfE5427ZV"
|
||||
|
||||
|
|
Loading…
Reference in a new issue