From 26c5ec2c77868e2fbaf7e65f72ed0d33d46657c8 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 24 Jul 2020 16:19:58 -0600 Subject: [PATCH] AES-GCM decrypt a gogo --- public/index.html | 136 ++++++++++++++-------------------------------- view/.aes/main.go | 1 + 2 files changed, 42 insertions(+), 95 deletions(-) diff --git a/public/index.html b/public/index.html index a289c72..08135be 100644 --- a/public/index.html +++ b/public/index.html @@ -2,111 +2,57 @@
-

Goodbye World

-
- - -
diff --git a/view/.aes/main.go b/view/.aes/main.go index bd2c25c..4b7b09d 100644 --- a/view/.aes/main.go +++ b/view/.aes/main.go @@ -35,6 +35,7 @@ func aesDec(key, payload string) (string, error) { if err != nil { return "", err } + log.Println(gcm.NonceSize()) if len(ciphertext) < gcm.NonceSize() { return "", errors.New("short ciphertext") }