We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f6b321 commit df6d9baCopy full SHA for df6d9ba
apps/meteor/app/2fa/server/code/index.ts
@@ -60,7 +60,8 @@ function getFingerprintFromConnection(connection: IMethodConnection): string {
60
clientAddress: connection.clientAddress,
61
});
62
63
- return crypto.createHash('sha256').update(data).digest('hex');
+ const algorithm = crypto.getFips() ? 'sha256' : 'md5';
64
+ return crypto.createHash(algorithm).update(data).digest('hex');
65
}
66
67
function getRememberDate(from: Date = new Date()): Date | undefined {
0 commit comments