Skip to content

Commit 27c0ed4

Browse files
committed
fix(fips): replace md5 with sha256 for 2fa fingerprint
1 parent b8b8611 commit 27c0ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/app/2fa/server/code/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function getFingerprintFromConnection(connection: IMethodConnection): string {
6060
clientAddress: connection.clientAddress,
6161
});
6262

63-
return crypto.createHash('md5').update(data).digest('hex');
63+
return crypto.createHash('sha256').update(data).digest('hex');
6464
}
6565

6666
function getRememberDate(from: Date = new Date()): Date | undefined {

0 commit comments

Comments
 (0)