gregcaulder

Members
  • Content Count

    10
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by gregcaulder


  1. gregcaulder/koldkat - please see this thread.

     

    Thanks for not actually answering the question. The link you provided still does not provide the answer. Let me rephrase the question to help you better understand I guess.

    Why is the limit set to 50? would make sense that it would be an advanced parameter that i can be allowed to change it.

    What were the realistic reason for setting it to 50?


  2.  

    #!/usr/bin/python
     
    # SHA1 encoder
    import hashlib
    import os
    from base64 import b32encode
     
    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 'This is your secret to share:  ', base32_dig
     
    Note: I find this useful as I created many folders and only display the printed list on the web. From the folder name, I already know a key, so I just create the new secret remotely, assign it to my folder, and I can download whatever I need from home.

     

     

    Any possible way of getting this in the form of a PHP script.

    I tried wrapping my head around it, but i cant get RO keys to match from RW keys.


  3. Yes, this can be done - you'll need to setup a separate Sync folder for each client on your "central server", and assign each one a read-only secret (with the corresponding full-access secrets given to each client respectively)

     

    This will allow each client to sync (backup) to a dedicated folder on your "central server", but any changes made on the central server itself won't propagate back to clients, and client's will not communicate with each other as long as they each have separate secrets.

     

    However, you don't mention just how many "clients" you propose to have connecting to your "central server" at any one time? If it's more than 50, Sync running on your central server won't be able to establish connections to them all simultaneously.

     

    Why wont sync be able to establish connection to more than 50 "clients" at one time?


  4. Ability to make the request url be able to be SSL.

    For example (listed in API documentation):

    http://[address]:[port]/api?method=get_folders[&secret=(secret)]

     

    Allow for HTTPS

    https://[address]:[port]/api?method=get_folders[&secret=(secret)]


  5. So I figured before I start my ventures in writing some scripts for Sync, I'd create a nice and easy way to access the API from PHP. It has all the current API functions included. It requires a Sync install with the API enabled.

     

    Link : iGARET/BTSync-PHP

    Docs: http://igaret.github.io/BTSync-PHP/classes/BTSync.html

     

    Let me know if you have any questions/suggestions!

     

    You didn't add in anything for the ability to pass a username and password.

    I added it on my own and got it to work.