deadserious Posted August 19, 2013 Report Share Posted August 19, 2013 I am creating my own shared secrets and would like to calculate what the read-only secret would be for that ID without entering it into the GUI. I assumed it was a hash-base64 encode of the writable shared secret, but can't find the right hash, so probably am way off.Can someone toss me a bone and share how the readonly key is calculated from the shared secret? Quote Link to post Share on other sites
Disappointed Cat Posted August 19, 2013 Report Share Posted August 19, 2013 The devs are over secretive to disclose internals as yet - but there is a way to generate RO keys from RW keys:btsync --get-ro-secret <full-access-secret>The process is different for standard secrets and custom/longer secrets so this is the best way to do it anyway. Quote Link to post Share on other sites
deadserious Posted August 20, 2013 Author Report Share Posted August 20, 2013 The devs are over secretive to disclose internals as yet - but there is a way to generate RO keys from RW keys:btsync --get-ro-secret <full-access-secret>The process is different for standard secrets and custom/longer secrets so this is the best way to do it anyway.I don't believe this works on Windows. When I try I just get an error that BTSync is already running. Quote Link to post Share on other sites
Disappointed Cat Posted August 20, 2013 Report Share Posted August 20, 2013 Indeed. Try the linux binary under cygwin just for this or use a linux instance remotely. Quote Link to post Share on other sites
deadserious Posted August 20, 2013 Author Report Share Posted August 20, 2013 Indeed. Try the linux binary under cygwin just for this or use a linux instance remotely. Unfortunately the first isn't feasible for my usecase. The second might work as a temporary hack I guess. But that won't be workable long term for what I'm building. Quote Link to post Share on other sites
Disappointed Cat Posted August 20, 2013 Report Share Posted August 20, 2013 There will be an API some time. I'm just chilling, why should I hack around a beta product? Quote Link to post Share on other sites
deadserious Posted August 20, 2013 Author Report Share Posted August 20, 2013 There will be an API some time. I'm just chilling, why should I hack around a beta product?First mover advantage?Besides, the latest API time frame statement wasn't very encouraging. Quote Link to post Share on other sites
deadserious Posted August 20, 2013 Author Report Share Posted August 20, 2013 Can someone toss me a bone and share how the readonly key is calculated from the shared secret?So far it appears that the Read only secret is the string "RONLY" followed by a 512 bit hash of something then urlencoded.I'm having a hard time figuring out what that 512 bit hash is. I've tried hashing the original secret with SHA2 and SHA3. It might be multiple iterations, but so far I haven't figured out how many if it is. If anyone else has any input or findings, that would be great. Quote Link to post Share on other sites
deadserious Posted August 21, 2013 Author Report Share Posted August 21, 2013 It would be great if I could get an official response from the Sync team. Even if they aren't permitted to give out this info yet, I'd like to hear that they know about this request for help. Quote Link to post Share on other sites
deadserious Posted August 26, 2013 Author Report Share Posted August 26, 2013 It would be great if I could get an official response from the Sync team. Even if they aren't permitted to give out this info yet, I'd like to hear that they know about this request for help.Still would love to get some help here. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.