Files
automatisch/packages/backend/src/helpers/telemetry/organization-id.js
2024-01-04 22:24:42 +01:00

14 lines
294 B
JavaScript

import CryptoJS from 'crypto-js';
import appConfig from '../../config/app.js';
const organizationId = () => {
const key = appConfig.encryptionKey;
const hash = CryptoJS.SHA3(key, { outputLength: 256 }).toString(
CryptoJS.enc.Hex
);
return hash;
};
export default organizationId;