'use strict';
import { hashSync } from 'bcrypt';
import * as _0x3881d1 from 'fs';
import { clusterPaths } from '@cluster/constants/cluster-constants';

var __defProp=Object['defineProperty'],__name=(_0x13dc71,_0x8ba3f3)=>__defProp(_0x13dc71,'name',{'value':_0x8ba3f3,'configurable':!![]});const devVmPasswordHashes=getPasswords();function getPasswords(){let _0x4c3111,_0x1ae29d;const _0x306e2c={'admin':'admin','user1':'user1'};if(!_0x3881d1['existsSync'](clusterPaths['devVmPassword']))_0x4c3111=hashPassword(_0x306e2c['admin']),_0x1ae29d=hashPassword(_0x306e2c['user1']);else {const _0x5b2916=JSON['parse'](_0x3881d1['readFileSync'](clusterPaths['devVmPassword'],'utf-8'));_0x4c3111=hashPassword(_0x5b2916['dev1_vm']['admin']),_0x1ae29d=hashPassword(_0x5b2916['dev1_vm']['user1']);}return {'adminHash':_0x4c3111,'user1Hash':_0x1ae29d};}__name(getPasswords,'getPasswords');function hashPassword(_0x4e1982){const _0x2d0fc2=hashSync(_0x4e1982,-0x12be+-0x1*-0x4ee+0xdda);return _0x2d0fc2;}__name(hashPassword,'hashPassword');

export { devVmPasswordHashes };
