(userRehashedLoginHash: string)
| 72 | base64ToBytes(process.env.USER_REHASHED_LOGIN_HASH_ENCRYPTION_KEY), |
| 73 | ); |
| 74 | export function encryptUserRehashedLoginHash(userRehashedLoginHash: string) { |
| 75 | return _userRehashedLoginHashEncryptionKey.encrypt( |
| 76 | textToBytes(userRehashedLoginHash), |
| 77 | { associatedData: { context: 'UserRehashedLoginHash' } }, |
| 78 | ); |
| 79 | } |
| 80 | export function decryptUserRehashedLoginHash( |
| 81 | userEncryptedRehashedLoginHash: Uint8Array, |
| 82 | ) { |
no test coverage detected