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

Function decryptUserEmail

packages/@deeplib/data/src/emails.ts:29–36  ·  view source on GitHub ↗
(encryptedEmail: Uint8Array)

Source from the content-addressed store, hash-verified

27 );
28}
29export function decryptUserEmail(encryptedEmail: Uint8Array) {
30 return bytesToText(
31 _userEmailEncryptionKey().decrypt(encryptedEmail, {
32 padding: true,
33 associatedData: { context: 'UserEmail' },
34 }),
35 );
36}
37
38export function hashUserEmail(email: string) {
39 return cryptoJsWordArrayToUint8Array(

Callers 6

email.tsFile · 0.90
rotateKeysStep1Function · 0.90
changeEmailStep2Function · 0.90
delete_Function · 0.90
loadFunction · 0.90
deleteUserFunction · 0.90

Calls 2

bytesToTextFunction · 0.90
decryptMethod · 0.45

Tested by

no test coverage detected