Реверснутый zcode с своими фишками и плагинами
Реверснутая ade zcode без z ai, с массовой загрузкой ключей, умным апи роутингом, плагином для командной разработки
Реверснутая ade zcode без z ai, с массовой загрузкой ключей, умным апи роутингом, плагином для командной разработки
// Состояние сервиса: state.json с зашифрованными токенами (AES-256-GCM, ключ в .state-key).
import crypto from 'node:crypto';
import fs from 'node:fs';
import path from 'node:path';
import { paths, DEFAULT_SERVER, localServer } from './config.mjs';
const AAD = Buffer.from('aura-team-state-v1');
const MAX_RECENT = 8;
function loadKey() {
try {
const key = Buffer.from(fs.paths
key key
fspathpaths
key crypto
fspaths key
fspaths
key
iv crypto
cipher crypto iv
cipher
data ciphersecrets cipher
iv cipher data
box box
decipher crypto box
decipher
decipherbox
decipherbox decipher
localServer
state
migrate
raw
raw fspaths
state
secrets
raw
secrets raw err err
raw raw migrate
state raw raw raw state
localServer state state state secrets raw
state secrets raw
state raw
state raw
state raw
raw p
state raw raw raw raw
raw state state raw
state migrate
payload
state
state
state
state
state
state state
fspathpaths
tmp
fstmp payload
fstmp paths
fspaths
fstmp
dir
pathp
state dir state p dir