AutoIt + BittorrentSync


Recommended Posts

A fancy use I found with bit torrent (on Windows) is this:


Bittorrent is installed on all computer.

An autoIt script monitors the BT folder and reacts to file with commands to the said computer.


So, I'll create a file

The file updates on all PC, but the autoit script on the concerned one reacts to the command you will put inside the file.


Next move.. port that autoit functionality to linux or bsd.

Link to comment
Share on other sites

In python, if you need to make a custom secret from a string:


# SHA1 encoder
import hashlib
import os
from base64 import b32encode
os.system('cls' if'nt' else 'clear')
secret_to_generate = raw_input('Please Enter the name to encode for the secret: ')
hash_object = hashlib.sha1(secret_to_generate)
hex_dig = hash_object.hexdigest()
base32_dig = b32encode(hex_dig)
print 'This is the HEX Digest:              ', hex_dig
print 'Copy-Paste this sting as the secret: ', base32_dig
Link to comment
Share on other sites

  • 3 weeks later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.