encrypt/decrypt and db interaction

This commit is contained in:
2022-12-03 21:47:09 -08:00
parent 196510e9a2
commit 1e4e1c9a5f
9 changed files with 375 additions and 49 deletions

View File

@ -1,9 +1,9 @@
-- Add migration script here
CREATE TABLE credentials (
access_key_id TEXT,
secret_key BLOB, -- encrypted
nonce BLOB,
expires INTEGER
access_key_id TEXT NOT NULL,
secret_key_enc BLOB NOT NULL,
salt BLOB NOT NULL,
nonce BLOB NOT NULL
);
CREATE TABLE config (