mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
bug fix app.tsx
This commit is contained in:
@@ -23,7 +23,7 @@ import { StorageIndicator } from './components/StorageIndicator';
|
|||||||
import { SecurityWarnings } from './components/SecurityWarnings';
|
import { SecurityWarnings } from './components/SecurityWarnings';
|
||||||
import { ClipboardTracker } from './components/ClipboardTracker';
|
import { ClipboardTracker } from './components/ClipboardTracker';
|
||||||
import { ReadOnly } from './components/ReadOnly';
|
import { ReadOnly } from './components/ReadOnly';
|
||||||
import { getSessionKey, encryptJsonToBlob, decryptBlobToJson, destroySessionKey, EncryptedBlob } from './lib/sessionCrypto';
|
import { encryptJsonToBlob, destroySessionKey, EncryptedBlob } from './lib/sessionCrypto';
|
||||||
|
|
||||||
console.log("OpenPGP.js version:", openpgp.config.versionString);
|
console.log("OpenPGP.js version:", openpgp.config.versionString);
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Shield, WifiOff } from 'lucide-react';
|
import { WifiOff } from 'lucide-react';
|
||||||
|
|
||||||
type ReadOnlyProps = {
|
type ReadOnlyProps = {
|
||||||
isReadOnly: boolean;
|
isReadOnly: boolean;
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export async function encryptJsonToBlob<T>(data: T): Promise<EncryptedBlob> {
|
|||||||
const ciphertext = await window.crypto.subtle.encrypt(
|
const ciphertext = await window.crypto.subtle.encrypt(
|
||||||
{
|
{
|
||||||
name: KEY_ALGORITHM,
|
name: KEY_ALGORITHM,
|
||||||
iv: iv,
|
iv: iv as Uint8Array,
|
||||||
},
|
},
|
||||||
sessionKey,
|
sessionKey,
|
||||||
plaintext,
|
plaintext,
|
||||||
|
|||||||
Reference in New Issue
Block a user