0

how generate sha1 hash for current-sync.xml



Hi there, i am working on generating a simple network update by php. My problem is that i do nor what is part of the sha1 hash. It is not only the filename! It will be nice to get a information what are the parts and how are they seperated. Is ther anyone who knows this? Thanks Christian

2 comments

  • 0
    Avatar
    Christian Scholz



    Hi there,

    i found out what i need to do.
    In
    viewtopic.php?f=19&t=19826&hilit=hash+php
    i found what i need.

    I tried the filename, the size, a combination of all in online generators.
    I never tried to make it of the file itself it in php.

    But here is the solution (Thanks to PaulT):

    to get the hash:
    echo sha1_file("filename.jpg");
    to get the size:
    echo filesize("filename.jpg");

    When i finished the scripting (which will take some time),
    i will post it here

    Christian

  • 0
    Avatar
    Ben Slocum


    Did you ever get that script working?  I'd love to get a look at a php, xml, brightsign combo.  Thanks Christian!
    Ben
Please sign in to leave a comment.