MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / encryptUserRehashedLoginHash

Function encryptUserRehashedLoginHash

apps/app-server/src/utils/crypto.ts:74–79  ·  view source on GitHub ↗
(userRehashedLoginHash: string)

Source from the content-addressed store, hash-verified

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

Callers 3

registerUserFunction · 0.90
changePasswordStep2Function · 0.90
changeEmailStep2Function · 0.90

Calls 2

textToBytesFunction · 0.90
encryptMethod · 0.45

Tested by

no test coverage detected