Add crypto-inventory: a cryptographic inventory of source code as a CycloneDX 1.6 CBOM, with linear cost on hostile input; PKI DER messages in English
This commit is contained in:
1 parent
7d814d1bb8
commit
0f081f0847
49 files changed
+4342
-33
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// Fixtura negativa: fisierul importa node:crypto doar pentru UUID-uri. Comentariile pomenesc
|
||||
// API-uri reale; niciunul nu e o folosire si scanerul trebuie sa dea ZERO gasiri.
|
||||
import crypto from 'node:crypto';
|
||||
|
||||
// crypto.createHash('md5') intr-un comentariu nu e o folosire.
|
||||
// const k = crypto.generateKeyPairSync('rsa', { modulusLength: 1024 });
|
||||
/* crypto.createCipheriv('des-ede3-cbc', key, iv) intr-un comentariu bloc */
|
||||
/**
|
||||
* Exemplu din documentatie: crypto.createSign('RSA-SHA1').
|
||||
* RSA, ECDSA, secp256k1 si X25519 sunt aici doar cuvinte.
|
||||
*/
|
||||
export function id() {
|
||||
return crypto.randomUUID(); // crypto.createHmac('sha1', k) tot comentariu
|
||||
}
|
||||
Reference in new issue
Block a user