From 22e14fe11d3cb763befcf2589755d25edecbd932 Mon Sep 17 00:00:00 2001 From: Joshua Date: Sun, 4 Aug 2024 09:38:21 -0600 Subject: [PATCH] sync --- README.md | 5 ++--- backend/src/security-layer/container/router.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8a13174..bb2c08d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ In the meantime: be a command like `sudo cloudflared service install areallylonghash@sha-256?` TODO: - Urgent: - [x] Basic Documentation @@ -62,10 +61,10 @@ TODO: - [ ] Cloudflare Tunnel setup via cloudflared - [ ] Daemonize service - - [ ] Encryption + - [x] Encryption - [x] SHA-1 hash API request/response - [x] Encrypt API request - - [ ] Encrypt API response + - [x] Encrypt API response - [ ] Dockerize backend - [ ] Broke Dockerfile, need to expose additional ports. diff --git a/backend/src/security-layer/container/router.go b/backend/src/security-layer/container/router.go index 11e1260..e086c7f 100644 --- a/backend/src/security-layer/container/router.go +++ b/backend/src/security-layer/container/router.go @@ -105,7 +105,7 @@ func createToken(username string) (string, error) { func verifyToken(tokenString string) error { token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) { - return secretKey, nil + return key, nil }) if err != nil {