1
0
Fork 0
mirror of https://github.com/Luzifer/go-openssl.git synced 2024-12-20 19:01:18 +00:00

Fix: Functions were renamed, test needs to be renamed

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-11-02 12:44:45 +01:00
parent 8b7b49d583
commit 0990dea461
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

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