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

Function decryptUserRehashedLoginHash

apps/app-server/src/utils/crypto.ts:80–89  ·  view source on GitHub ↗
(
  userEncryptedRehashedLoginHash: Uint8Array,
)

Source from the content-addressed store, hash-verified

78 );
79}
80export function decryptUserRehashedLoginHash(
81 userEncryptedRehashedLoginHash: Uint8Array,
82) {
83 return bytesToText(
84 _userRehashedLoginHashEncryptionKey.decrypt(
85 userEncryptedRehashedLoginHash,
86 { associatedData: { context: 'UserRehashedLoginHash' } },
87 ),
88 );
89}
90
91// Group rehashed password hash
92

Callers 6

rotateKeysStep1Function · 0.90
rotateKeysStep2Function · 0.90
changePasswordStep1Function · 0.90
changeEmailStep1Function · 0.90
loginFunction · 0.90

Calls 2

bytesToTextFunction · 0.90
decryptMethod · 0.45

Tested by

no test coverage detected