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