π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Del
Manav Rathie6fd962c759b
diff --git a/web/packages/base/crypto/ente-impl.ts b/web/packages/base/crypto/ente-impl.tsindex cce1766390..df2e78bc8a 100644--- a/web/packages/base/crypto/ente-impl.ts+++ b/web/packages/base/crypto/ente-impl.ts@@ -53,19 +53,6 @@ export const _decryptMetadataJSON_New = async (new TextDecoder().decode(await _decryptBlobBytes(blob, key)),) as unknown;-export const _decryptMetadataJSON = async (r: {- encryptedDataB64: string;- decryptionHeaderB64: string;- keyB64: string;-}) =>- _decryptMetadataJSON_New(- {- encryptedData: r.encryptedDataB64,- decryptionHeader: r.decryptionHeaderB64,- },- r.keyB64,- );-export const _chunkHashInit = libsodium.chunkHashInit;export const _chunkHashUpdate = libsodium.chunkHashUpdate;diff --git a/web/packages/base/crypto/index.ts b/web/packages/base/crypto/index.tsindex 28edaf0932..e7f5db026a 100644--- a/web/packages/base/crypto/index.ts+++ b/web/packages/base/crypto/index.ts@@ -341,18 +341,6 @@ export const decryptMetadataJSON_New = (? ei._decryptMetadataJSON_New(blob, key): sharedWorker().then((w) => w.decryptMetadataJSON_New(blob, key));-/**- * Deprecated, retains the old API.- */-export const decryptMetadataJSON = (r: {- encryptedDataB64: string;- decryptionHeaderB64: string;- keyB64: string;-}) =>- inWorker()- ? ei._decryptMetadataJSON(r)- : sharedWorker().then((w) => w.decryptMetadataJSON(r));-/*** Generate a new public/private keypair.*/diff --git a/web/packages/base/crypto/worker.ts b/web/packages/base/crypto/worker.tsindex 9c425c2137..2881992fb8 100644--- a/web/packages/base/crypto/worker.ts+++ b/web/packages/base/crypto/worker.ts@@ -35,7 +35,6 @@ export class CryptoWorker {initChunkDecryption = ei._initChunkDecryption;decryptStreamChunk = ei._decryptStreamChunk;decryptMetadataJSON_New = ei._decryptMetadataJSON_New;- decryptMetadataJSON = ei._decryptMetadataJSON;chunkHashInit = ei._chunkHashInit;chunkHashUpdate = ei._chunkHashUpdate;chunkHashFinal = ei._chunkHashFinal;