Files
automatisch/packages/backend/src/helpers/telemetry/organization-id.js
2024-01-04 19:55:41 +01:00

14 lines
291 B
JavaScript

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