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 {