more implementation of runtime unlock
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-28 11:14:16 +11:00
parent 9203e09d2d
commit 484acd1822
7 changed files with 115 additions and 43 deletions

View File

@@ -15,7 +15,6 @@ import (
)
var db *sqlx.DB
var secretKey string
const (
sqlFile = "smt.db"
@@ -81,11 +80,6 @@ func ConnectDatabase() {
//defer db.Close()
}
func LoadSecretKey(key string) {
// Store the secret key so that we can access it when encrypting/decrypting
secretKey = key
}
func DisconnectDatabase() {
log.Printf("DisconnectDatabase called")
defer db.Close()