π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use
Manav Rathia59bb780ee71
diff --git a/web/apps/cast/src/services/pair.ts b/web/apps/cast/src/services/pair.tsindex 59d02851fc..37701fbced 100644--- a/web/apps/cast/src/services/pair.ts+++ b/web/apps/cast/src/services/pair.ts@@ -1,4 +1,4 @@-import { boxSealOpen, generateKeyPair } from "@/base/crypto/libsodium";+import { boxSealOpen, generateKeyPair } from "@/base/crypto";import { clientPackageHeader, ensureOk } from "@/base/http";import log from "@/base/log";import { apiURL } from "@/base/origins";diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsxindex 7b33518870..28b82836ad 100644--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx@@ -1,6 +1,6 @@import { TitledMiniDialog } from "@/base/components/MiniDialog";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";-import { boxSeal } from "@/base/crypto/libsodium";+import { boxSeal } from "@/base/crypto";import log from "@/base/log";import type { Collection } from "@/media/collection";import { photosDialogZIndex } from "@/new/photos/components/utils/z-index";diff --git a/web/packages/base/crypto/index.ts b/web/packages/base/crypto/index.tsindex 8ad977b882..a333c5ef92 100644--- a/web/packages/base/crypto/index.ts+++ b/web/packages/base/crypto/index.ts@@ -345,7 +345,7 @@ export const decryptMetadataJSON = (r: {: sharedCryptoWorker().then((w) => w.decryptMetadataJSON(r));/**- * Generate a new public/private keypair for use with the boxSeal* functions.+ * Generate a new public/private keypair.*/export const generateKeyPair = async () =>inWorker()diff --git a/web/packages/base/crypto/libsodium.ts b/web/packages/base/crypto/libsodium.tsindex d10bd10a78..45caed99eb 100644--- a/web/packages/base/crypto/libsodium.ts+++ b/web/packages/base/crypto/libsodium.ts@@ -664,8 +664,8 @@ export async function completeChunkHashing(hashState: sodium.StateAddress) {}/**- * Generate a new public/private keypair for use with the boxSeal* functions,- * and return their base64 string representations.+ * Generate a new public/private keypair for use with public-key encryption+ * functions, and return their base64 string representations.** These keys are suitable for being used with the {@link boxSeal} and* {@link boxSealOpen} functions.