10 lines
392 B
JavaScript
10 lines
392 B
JavaScript
import crypto from 'node:crypto';
|
|
|
|
export const doc = "Call crypto.createHash('md5') to hash (documentation string).";
|
|
export const tpl = `Use crypto.createCipheriv('des-ede3-cbc', key, iv) at ${Date.now()}`;
|
|
export const eticheta = 'crypto.generateKeyPairSync("rsa", { modulusLength: 1024 })';
|
|
export const re = /createHash\('sha1'\)/;
|
|
export function id() {
|
|
return crypto.randomUUID();
|
|
}
|