Closed gluefxu closed 7 years ago
In the next version the secret values (passwords) in ~/.sqlectron.json
will be encrypted. The SQLECTRON_SECRET
is the secret used to encrypt and decrypt the passwords. But replace-secret.js
is only executed in the build. You shouldn't have that problem with npm run dev
.
Although that problem wasn't happening to me. I have simplified the code to not depend on SQLECTRON_SECRET
anymore. Closing this issue. Please re open if it still happening to you.
just clone the newest version 1.20.2
Error: Bad input string at Decipher.update (crypto.js:144:26) at Object.decrypt (xxx/sqlectron-gui/node_modules/sqlectron-core/lib/crypto.js:33:22) at decryptSecrects (xxx/sqlectron-gui/node_modules/sqlectron-core/lib/servers.js:148:30) at xxx/sqlectron-gui/node_modules/sqlectron-core/lib/servers.js:14:14 at Array.forEach (native) at Object. (xxx/sqlectron-gui/node_modules/sqlectron-core/lib/servers.js:13:20)
at Generator.next ()
at step (xxx/sqlectron-gui/node_modules/sqlectron-core/lib/servers.js:111:191)
at xxx/sqlectron-gui/node_modules/sqlectron-core/lib/servers.js:111:361
They seems related. I have no idea after searching(a lot of thing in sqlectron-core). So what is the "secret" mean? Where is the SQLECTRON_SECRET come from?
Thank you! (Sorry for my poor English)