feat: add desktop build using wails

This commit is contained in:
2024-11-16 02:34:07 +07:00
parent f2c0ab0945
commit a07c72974f
69 changed files with 1603 additions and 137 deletions
+10
View File
@@ -138,3 +138,13 @@ func Decrypt(encrypted string) (string, error) {
return string(res), nil
}
// Function to generate a 32-byte random key for AES-256
func GenerateRandomKey() (string, error) {
key := make([]byte, 32) // 32 bytes = 256 bits
_, err := rand.Read(key)
if err != nil {
return "", err
}
return hex.EncodeToString(key), nil
}