username1565 / uTox_winXP

µTox the lightest and fluffiest Tox client
https://utox.io
Other
6 stars 0 forks source link

Private key from uTox.exe profile - tox_save.tox #8

Open username1565 opened 4 years ago

username1565 commented 4 years ago

After first running uTox.exe, there, in \Tox\-folder, is created tox_save.tox. Anyone can open this file, as hex, by using Hex-editor.

After start uTox.exe, when this file is exists, the ToxID is static in the Settings, and first 32 bytes from hexadecimal value of this ToxID - this is NaCl-publicKey. Another 4 bytes of ToxID, (8 hex characters) - this is NoSPAM-number, and 2Bytes XOR Checksum.

This 32-bytes publicKey value is exists in the hex of tox_save.tox, and after this value, there is contains generated NaCl box-secretKey (next 32 more bytes).

After encoding this hexadecimal as base64, here: https://username1565.github.io/brainwallet.github.io/#converter this keyPair can be used for encryption/decryption, and moreover - for sign/verify the digital signatures for the messages, here: https://username1565.github.io/nanoboard-javascript-captcha/index.html#/sign

Maybe, need to add the ability to show secretKey, the ability to change this, regenerate publicKey (ToxID), after changing, and rewrite this data inside tox_save.tox.

Also, maybe, will be better to unlock the hardcoded bootstrap-nodes, and add the ability to specify this, and change to the custom nodes, and do this without any re-compilations. Any computer with runned uTox, can be the node and bootstrap-node, after port-forwarding, and publicKey of this contains in the first 32-bytes of generated ToxID.