add encryption for the two SQL columns, replace basic DB utils, add USE_DEXIE_DB flag, and start adding SQL everywhere

This commit is contained in:
2025-05-26 19:03:20 -06:00
parent 6e005de65a
commit 3f46e3817a
8 changed files with 467 additions and 27 deletions

View File

@@ -285,11 +285,20 @@
<div>
<button
class="font-bold capitalize bg-slate-500 text-white px-3 py-2 rounded-md mr-2"
@click="testEncryptionDecryption()"
@click="testMessageEncryptionDecryption()"
>
Run Test
Run Test for Message Encryption/Decryption
</button>
Result: {{ encryptionTestResult }}
Result: {{ messageEncryptionTestResult }}
</div>
<div>
<button
class="font-bold capitalize bg-slate-500 text-white px-3 py-2 rounded-md mr-2"
@click="testSimpleEncryptionDecryption()"
>
Run Test for Simple Encryption/Decryption
</button>
Result: {{ simpleEncryptionTestResult }}
</div>
</div>
</section>
@@ -341,7 +350,8 @@ export default class Help extends Vue {
$router!: Router;
// for encryption/decryption
encryptionTestResult?: boolean;
messageEncryptionTestResult?: boolean;
simpleEncryptionTestResult?: boolean;
// for file import
fileName?: string;
@@ -434,8 +444,12 @@ export default class Help extends Vue {
this.credIdHex = account.passkeyCredIdHex;
}
public async testEncryptionDecryption() {
this.encryptionTestResult = await cryptoLib.testEncryptionDecryption();
public async testMessageEncryptionDecryption() {
this.messageEncryptionTestResult = await cryptoLib.testMessageEncryptionDecryption();
}
public async testSimpleEncryptionDecryption() {
this.simpleEncryptionTestResult = await cryptoLib.testSimpleEncryptionDecryption();
}
public async createJwtSimplewebauthn() {