We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e0a7f1 commit 593e889Copy full SHA for 593e889
1 file changed
ee/apps/ddp-streamer/src/fips.ts
@@ -16,6 +16,16 @@
16
*/
17
import crypto from 'crypto';
18
19
+crypto.setFips(true);
20
+
21
+if (crypto.getFips() !== 1) {
22
+ throw new Error('FIPS mode was not enabled after crypto.setFips(true)');
23
+}
24
25
+console.log('=========================================');
26
+console.log('FIPS COMPLIANCE CHECK: YES');
27
28
29
try {
30
crypto.createHash('sha1').update('test').digest('hex');
31
console.log('🔓 Native SHA-1 allowed. Skipping FIPS WebSocket patch.');
0 commit comments