MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / encrypt

Method encrypt

packages/@stdlib/crypto/src/keys/key-pair.ts:13–24  ·  view source on GitHub ↗
(
      plaintext: Uint8Array,
      recipientsPublicKey: PublicKey,
      params?: { padding?: boolean },
    )

Source from the content-addressed store, hash-verified

11 }
12
13 encrypt(
14 plaintext: Uint8Array,
15 recipientsPublicKey: PublicKey,
16 params?: { padding?: boolean },
17 ): Uint8Array {
18 return privateKey.encrypt(
19 plaintext,
20 recipientsPublicKey,
21 publicKey,
22 params,
23 );
24 }
25 decrypt(
26 ciphertext: Uint8Array,
27 params?: { padding?: boolean },

Callers 15

wrapSymmetricMethod · 0.45
wrapAsymmetricMethod · 0.45
encryptUserEmailFunction · 0.45
encryptRecoveryCodesFunction · 0.45
self-user-name.tsFile · 0.45
getRegistrationValuesFunction · 0.45
createNotificationsFunction · 0.45
copyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected