diff options
| author | chrislu <chris.lu@gmail.com> | 2022-09-17 10:18:14 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-09-17 10:18:14 -0700 |
| commit | 1c79301f89762ed25a431bcb5f4e02858dc02218 (patch) | |
| tree | d0d6c5c44f7524ec38d7002e393d194769278649 /weed/util/cipher_test.go | |
| parent | 956ce6416fae66646344782cc7f6f557708eb1f4 (diff) | |
| parent | 3fc261d27c90fc06c1d555dd998d7535b844a746 (diff) | |
| download | seaweedfs-1c79301f89762ed25a431bcb5f4e02858dc02218.tar.xz seaweedfs-1c79301f89762ed25a431bcb5f4e02858dc02218.zip | |
Merge branch 'master' into message_send
Diffstat (limited to 'weed/util/cipher_test.go')
| -rw-r--r-- | weed/util/cipher_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/cipher_test.go b/weed/util/cipher_test.go index 026c96ea3..27262c23f 100644 --- a/weed/util/cipher_test.go +++ b/weed/util/cipher_test.go @@ -9,9 +9,9 @@ func TestSameAsJavaImplementation(t *testing.T) { str := "QVVhmqg112NMT7F+G/7QPynqSln3xPIhKdFGmTVKZD6IS0noyr2Z5kXFF6fPjZ/7Hq8kRhlmLeeqZUccxyaZHezOdgkjS6d4NTdHf5IjXzk7" cipherText, _ := base64.StdEncoding.DecodeString(str) secretKey := []byte("256-bit key for AES 256 GCM encr") - plantext, err := Decrypt(cipherText, CipherKey(secretKey)) + plaintext, err := Decrypt(cipherText, CipherKey(secretKey)) if err != nil { println(err.Error()) } - println(string(plantext)) + println(string(plaintext)) } |
