1
0
Fork 0
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:
Knut Ahlers 2017-04-04 23:53:27 +02:00
parent 84e5195305
commit 08db5147e8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -2,7 +2,7 @@ package openssl
import "fmt" import "fmt"
func ExampleEncryptString() { func ExampleOpenSSL_EncryptString() {
plaintext := "Hello World!" plaintext := "Hello World!"
passphrase := "z4yH36a6zerhfE5427ZV" passphrase := "z4yH36a6zerhfE5427ZV"
@ -16,7 +16,7 @@ func ExampleEncryptString() {
fmt.Printf("Encrypted text: %s\n", string(enc)) fmt.Printf("Encrypted text: %s\n", string(enc))
} }
func ExampleDecryptString() { func ExampleOpenSSL_DecryptString() {
opensslEncrypted := "U2FsdGVkX19ZM5qQJGe/d5A/4pccgH+arBGTp+QnWPU=" opensslEncrypted := "U2FsdGVkX19ZM5qQJGe/d5A/4pccgH+arBGTp+QnWPU="
passphrase := "z4yH36a6zerhfE5427ZV" passphrase := "z4yH36a6zerhfE5427ZV"