randomblink Posted May 6, 2013 Report Share Posted May 6, 2013 I have a folder with many folders inside.Is there any way that I could tell Sync to create a secret for each folder automatically?Generate an HTML for each secret so i could send out to team members?Or do I have to create each Secret manually? Quote Link to comment Share on other sites More sharing options...
Automatic Coding Posted May 6, 2013 Report Share Posted May 6, 2013 Probably easier to throw together some bash/batch script to use curl to add each one.Something like:-for [file in /tmp]; do$secret=$(dd if=/dev/urandom bs=1 count=128 | md5sum) #I think by default bittorrent sync uses md5sums? Or, atleast something that [b]could[/b] be a MD5sum. You might want to change it to base64/sha512/256/128.curl 127.0.0.1:8888 --data "whateverPostDataIsRequired&folder=$file&secret=$secret"doneObviously the above won't work for more than one reason (Curl is incorrect, for loop is incorrect, secret would probably fall below a secure measure, etc...), but, it gives you the idea. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted May 6, 2013 Report Share Posted May 6, 2013 #I think by default bittorrent sync uses md5sums? Or, atleast something that could be a MD5sum. You might want to change it to base64/sha512/256/128.BitTorrent Sync uses base32 for secrets (Source) Quote Link to comment Share on other sites More sharing options...
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.