Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Doc

Manav Rathiaae00dcc15ae
diff --git a/web/packages/base/crypto/libsodium.ts b/web/packages/base/crypto/libsodium.ts
index 225b5efe72..ff470b1c9e 100644
--- a/web/packages/base/crypto/libsodium.ts
+++ b/web/packages/base/crypto/libsodium.ts
@@ -682,6 +682,12 @@ export async function boxSealOpen(
);
}
+/**
+ * Encrypt the given {@link input} using the given {@link publicKey}.
+ *
+ * This function performs asymmetric (public-key) encryption. To decrypt the
+ * result, use {@link boxSealOpen}.
+ */
export async function boxSeal(input: string, publicKey: string) {
await sodium.ready;
return await toB64(