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:
parent
8b7b49d583
commit
0990dea461
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue