Re: [WebDNA] Create a cryptographic Mac key...

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 113168
interpreted = N
texte = 756 This is a multi-part message in MIME format. --------------030602080300050105020608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi Stuart,, Yes I had the same number of character. I have sorted it out. I'm using OSX 10.9 I have updated OpenSSL and finaly it is working with a shell script called from Webdna script Webdna code is And the shell script is #!/bin/bash input=3D$(cat) echo "input: $input" >> /tmp/log.txt res=3D$(echo -n "MYVALUE" | /usr/bin/iconv -f utf8 -t iso8859-1 |=20 /usr/bin/openssl dgst -sha1 -hmac $(printf '\x13\x0F\x25\...xFA\xAE\x9F')= ) echo "res: $res" >> /tmp/log.txt echo $res I wasn't getting the right result directly in Webdna... Thanks WebDNA Development > 7 novembre 2016 21:03 > I would check the encryption method, your result is all lowercase, the=20 > example is all uppercase. > > Do you have the same number of characters as they have in the example ? > > Kind regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > > > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us > Lawrence Banahan > 5 novembre 2016 23:12 > Hi Tom, > > it seems to be working but I'm not getting the right Mac key at the end= .... > > With your code I have > > Value =3D2780154*05/11/2016:23:01:57*50 EUR*147838331710*Finale=20 > Championnat de M=E9diterran=E9e Laser=20 > 2016*3.0*FR*clubnautiq*webmaster@cnsr.fr********** > Key=3D mykey > I get the following "c8b75a4f5268376368218b8e36ea674980a1e396 " (I=20 > don't understand why I get a space at the end) > but the banks server tells me I should get this=20 > "A4FE0F****************************FE6CE5" > > Do you have any clue? > > Thanks > Lawrence > Tom Duke > 31 octobre 2016 14:00 > Lawrence, > > Hi - this shell command should do the trick: > > [shell]echo -n "value" | openssl sha1 -hmac "key"[/shell] > > replace the value and key with your values. > > - Tom > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > > [w]: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us > Lawrence Banahan > 29 octobre 2016 11:54 > Hi Tom, > I got the info, it is HMAC-SHA1 > I'm running Webdna 6 with MacOsX > They also propose me to use a Python script, what do you think about it= ? > Thanks in advance > Lawrence > > > Tom Duke > 24 octobre 2016 19:28 > Laurence. > > Hi - you need to know what type of hash they are looking for. It's=20 > likely to be SHA-1 or SHA-256. > > Once you know that there are different ways to do it depending on your=20 > version of WebDNA and your OS - assuming you can run [shell] commands. > > - Tom > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > > [w]: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us --------------030602080300050105020608 Content-Type: multipart/related; boundary="------------010405070808080401090901" --------------010405070808080401090901 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Stuart,,

Yes I had the same number of character.

I have sorted it out.
I'm using OSX 10.9
I have updated OpenSSL
and finaly it is working with a shell script called from Webdna script
Webdna code is
<input type="hidden" name="MAC" value="[getchars start=1&trim=both][shell]echo "[_value]" | /Users/miniserve/script/make.sh [/shell][/getchars]">

And the shell script is
#!/bin/bash
input=$(cat)
echo "input: $input" >> /tmp/log.txt
res=$(echo -n "MYVALUE" | /usr/bin/iconv -f utf8 -t iso8859-1 | /usr/bin/openssl dgst -sha1 -hmac $(printf '\x13\x0F\x25\...xFA\xAE\x9F'))
echo "res: $res" >> /tmp/log.txt
echo $res


I wasn't getting the right result directly in Webdna...

Thanks <Tom for giging me the first kik!

I hope it will help someone one day ;-)

Lawrence

7 novembre 2016 21:03
I would check the encryption method, your result is all lowercase, the example is all uppercase.

Do you have the same number of characters as they have in the example ?

Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA






--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

Lawrence Banahan
5 novembre 2016 23:12
Hi Tom,

it seems to be working but I'm not getting the right Mac key at the end...

With your code I have

Value =2780154*05/11/2016:23:01:57*50 EUR*147838331710*Finale Championnat de Méditerranée Laser 2016*3.0*FR*clubnautiq*webmaster@cnsr.fr**********
Key= mykey
I get the following "c8b75a4f5268376368218b8e36ea674980a1e396 " (I don't understand why I get a space at the end)
but the banks server tells me I should get this "A4FE0F****************************FE6CE5"

Do you have any clue?

Thanks
Lawrence

Tom Duke
31 octobre 2016 14:00
Lawrence,

Hi - this shell command should do the trick:

    [shell]echo -n "value" | openssl sha1 -hmac "key"[/shell]

replace the value and key with your values.

- Tom



==============================================
Digital Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland
----------------------------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
==============================================


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

Lawrence Banahan
29 octobre 2016 11:54
Hi Tom,
I got the info, it is HMAC-SHA1
I'm running Webdna 6 with MacOsX
They also propose me to use a Python script, what do you think about it?
Thanks in advance
Lawrence



Tom Duke
24 octobre 2016 19:28
Laurence.

Hi - you need to know what type of hash they are looking for.  It's likely to be SHA-1 or SHA-256.

Once you know that there are different ways to do it depending on your version of WebDNA and your OS - assuming you can run [shell] commands.

- Tom




==============================================
Digital Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland
----------------------------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
==============================================


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --------------010405070808080401090901 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------010405070808080401090901 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="postbox-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="postbox-contact.jpg" /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAg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fi3/oMXH5D/Cuq0v6f/AMOWPc+MP+Cbvw0tm/Z7+JfxY1DTEu nOqaJHbRPCJPOXTY4Z9gzwuZZEy3baa480k1hZpb2/M3wMFPEw5trnM/Hz9lr4ifHzxT4e8S 3mrtoHhlLZgLa+Y3F3AXdSwi+crIJGLMGJUKAAc8KPm8Bm9HLacqNryb36P19D6fNMseMrKc JaJWt/l6n1F+wP8AGXWJ9N8S/APxHpsBg+FqR2t9rovBJbqA5hhsnyqjzgYyWYHYdrbQRg19 LgqEaFOVe9lJ3s/Pf5HzeNrOtXjSir2Vr+n6mL/wnfgX/oZdK/8AApf8a0+s0P50Y+yr9mZ/ 7FHxI174c+ALr9mfxJ8FJtZutJlmfV7jS9Ut91x9qG/bJDP5fzBCqEByfl7HNd1WhCtS9o3p Lujzli1hsQsNZ8ytZrbyZ1/xY8Z3vw68JHxHo0F9pGt6Prdi9ppGt6cYRc6clwnmxrM+YGdo vlGHOBkjJwR8jgsihHEOrOSlq7L/AD6n1WIzRuiopWVtSt8EPDsXwx/Z68B2t5oI03WPiHf3 XivxPcuuJ7xg7zjz29cyW4AP3RketepnNVww8lFauyRx5bTjKtzS6as8U/4Qrxn/ANEt1L/w Uy//ABNeP9Uq/wAn4Hd9Zh/N+JT+MX/J63xO/wCv+y/9I4q+xf8ABXzPkqn+9/JfqZXxg/5E i8/6+LT/ANKI682O7PYw/wASMX4Gf8l+0n/sLn/0bDW8/wDl0Jf8vD9Xq7DiP//Z --------------010405070808080401090901 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="postbox-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="postbox-contact.jpg" /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgK CgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkL EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB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XmYvHY/C06lLDPlhJWbX5eXqfW8OZfktfG4b E4+PtKkJpqMl7ttr3T1fk9D5J+LPhn4W2vxX0/SLPU7aPwla2ongkjvw6R3wdtiLPjDbowjF R0ZiP4cV8tVqSwvvZd7021frpfX/ADP0bjfEZzjMsorNqXJSjJ8t48j+H8uito0kfGXmJ/d/ 8e/+vX1l2fjWh6V8Pfid8Qvgz4kbWvCGqXGkanHb/wBn3tvNFlZFUBXhmibrhl6HBUjjBFbp 2E1czpviB4xl17xD4nj8RX1tqniiWVtTubS4ktzPFIMNAyowVo8Y4YE8Dml8Q43jLmiVLrxN rGoRWdtqeoPPDYyb4zJyR0zk9T071zUsJRw83UpRs2e9mXE2aZxhKWCx1VzhTu4337avd9lc of8ACsPid/0TnxR/4KLj/wCIrpPnjvv2zP8Ak574gf8AYST/ANER0DR4vQM6j4V/8lP8If8A Ye0//wBKEoA/digg/9k= --------------010405070808080401090901-- --------------030602080300050105020608-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Create a cryptographic Mac key... (Lawrence Banahan 2016)
  2. Re: [WebDNA] Create a cryptographic Mac key... (WebDNA Development 2016)
  3. Re: [WebDNA] Create a cryptographic Mac key... (Tom Duke 2016)
  4. Re: [WebDNA] Create a cryptographic Mac key... (Lawrence Banahan 2016)
  5. Re: [WebDNA] Create a cryptographic Mac key... (Tom Duke 2016)
  6. Re: [WebDNA] Create a cryptographic Mac key... (Lawrence Banahan 2016)
  7. Re: [WebDNA] Create a cryptographic Mac key... (christophe.billiottet@webdna.us 2016)
  8. Re: [WebDNA] Create a cryptographic Mac key... (Tom Duke 2016)
  9. [WebDNA] Create a cryptographic Mac key... (Lawrence Banahan 2016)
756 This is a multi-part message in MIME format. --------------030602080300050105020608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi Stuart,, Yes I had the same number of character. I have sorted it out. I'm using OSX 10.9 I have updated OpenSSL and finaly it is working with a shell script called from Webdna script Webdna code is [shell]echo "[_value]" |=20 /Users/miniserve/script/make.sh [/shell][/getchars]"> And the shell script is #!/bin/bash input=3D$(cat) echo "input: $input" >> /tmp/log.txt res=3D$(echo -n "MYVALUE" | /usr/bin/iconv -f utf8 -t iso8859-1 |=20 /usr/bin/openssl dgst -sha1 -hmac $(printf '\x13\x0F\x25\...xFA\xAE\x9F')= ) echo "res: $res" >> /tmp/log.txt echo $res I wasn't getting the right result directly in Webdna... Thanks WebDNA Development > 7 novembre 2016 21:03 > I would check the encryption method, your result is all lowercase, the=20 > example is all uppercase. > > Do you have the same number of characters as they have in the example ? > > Kind regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > > > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us > Lawrence Banahan > 5 novembre 2016 23:12 > Hi Tom, > > it seems to be working but I'm not getting the right Mac key at the end= .... > > With your code I have > > Value =3D2780154*05/11/2016:23:01:57*50 EUR*147838331710*Finale=20 > Championnat de M=E9diterran=E9e Laser=20 > 2016*3.0*FR*clubnautiq*webmaster@cnsr.fr********** > Key=3D mykey > I get the following "c8b75a4f5268376368218b8e36ea674980a1e396 " (I=20 > don't understand why I get a space at the end) > but the banks server tells me I should get this=20 > "A4FE0F****************************FE6CE5" > > Do you have any clue? > > Thanks > Lawrence > Tom Duke > 31 octobre 2016 14:00 > Lawrence, > > Hi - this shell command should do the trick: > > [shell]echo -n "value" | openssl sha1 -hmac "key"[/shell] > > replace the value and key with your values. > > - Tom > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > > [w]: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us > Lawrence Banahan > 29 octobre 2016 11:54 > Hi Tom, > I got the info, it is HMAC-SHA1 > I'm running Webdna 6 with MacOsX > They also propose me to use a Python script, what do you think about it= ? > Thanks in advance > Lawrence > > > Tom Duke > 24 octobre 2016 19:28 > Laurence. > > Hi - you need to know what type of hash they are looking for. It's=20 > likely to be SHA-1 or SHA-256. > > Once you know that there are different ways to do it depending on your=20 > version of WebDNA and your OS - assuming you can run [shell] commands. > > - Tom > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > > [w]: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us --------------030602080300050105020608 Content-Type: multipart/related; boundary="------------010405070808080401090901" --------------010405070808080401090901 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Stuart,,

Yes I had the same number of character.

I have sorted it out.
I'm using OSX 10.9
I have updated OpenSSL
and finaly it is working with a shell script called from Webdna script
Webdna code is
<input type="hidden" name="MAC" value="[getchars start=1&trim=both][shell]echo "[_value]" | /Users/miniserve/script/make.sh [/shell][/getchars]">

And the shell script is
#!/bin/bash
input=$(cat)
echo "input: $input" >> /tmp/log.txt
res=$(echo -n "MYVALUE" | /usr/bin/iconv -f utf8 -t iso8859-1 | /usr/bin/openssl dgst -sha1 -hmac $(printf '\x13\x0F\x25\...xFA\xAE\x9F'))
echo "res: $res" >> /tmp/log.txt
echo $res


I wasn't getting the right result directly in Webdna...

Thanks <Tom for giging me the first kik!

I hope it will help someone one day ;-)

Lawrence

7 novembre 2016 21:03
I would check the encryption method, your result is all lowercase, the example is all uppercase.

Do you have the same number of characters as they have in the example ?

Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA






--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

5 novembre 2016 23:12
Hi Tom,

it seems to be working but I'm not getting the right Mac key at the end...

With your code I have

Value =2780154*05/11/2016:23:01:57*50 EUR*147838331710*Finale Championnat de Méditerranée Laser 2016*3.0*FR*clubnautiq*webmaster@cnsr.fr**********
Key= mykey
I get the following "c8b75a4f5268376368218b8e36ea674980a1e396 " (I don't understand why I get a space at the end)
but the banks server tells me I should get this "A4FE0F****************************FE6CE5"

Do you have any clue?

Thanks
Lawrence

31 octobre 2016 14:00
Lawrence,

Hi - this shell command should do the trick:

    [shell]echo -n "value" | openssl sha1 -hmac "key"[/shell]

replace the value and key with your values.

- Tom



==============================================
Digital Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland
----------------------------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
==============================================


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

29 octobre 2016 11:54
Hi Tom,
I got the info, it is HMAC-SHA1
I'm running Webdna 6 with MacOsX
They also propose me to use a Python script, what do you think about it?
Thanks in advance
Lawrence



24 octobre 2016 19:28
Laurence.

Hi - you need to know what type of hash they are looking for.  It's likely to be SHA-1 or SHA-256.

Once you know that there are different ways to do it depending on your version of WebDNA and your OS - assuming you can run [shell] commands.

- Tom




==============================================
Digital Revolutionaries
1st Floor, Castleriver House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland
----------------------------------------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
==============================================


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --------------010405070808080401090901 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------010405070808080401090901 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="postbox-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="postbox-contact.jpg" /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgK CgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkL EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAAR CAAZABkDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAA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S/APxHpsBg+FqR2t9rovBJbqA5hhsnyqjzgYyWYHYdrbQRg19 LgqEaFOVe9lJ3s/Pf5HzeNrOtXjSir2Vr+n6mL/wnfgX/oZdK/8AApf8a0+s0P50Y+yr9mZ/ 7FHxI174c+ALr9mfxJ8FJtZutJlmfV7jS9Ut91x9qG/bJDP5fzBCqEByfl7HNd1WhCtS9o3p Lujzli1hsQsNZ8ytZrbyZ1/xY8Z3vw68JHxHo0F9pGt6Prdi9ppGt6cYRc6clwnmxrM+YGdo vlGHOBkjJwR8jgsihHEOrOSlq7L/AD6n1WIzRuiopWVtSt8EPDsXwx/Z68B2t5oI03WPiHf3 XivxPcuuJ7xg7zjz29cyW4AP3RketepnNVww8lFauyRx5bTjKtzS6as8U/4Qrxn/ANEt1L/w Uy//ABNeP9Uq/wAn4Hd9Zh/N+JT+MX/J63xO/wCv+y/9I4q+xf8ABXzPkqn+9/JfqZXxg/5E i8/6+LT/ANKI682O7PYw/wASMX4Gf8l+0n/sLn/0bDW8/wDl0Jf8vD9Xq7DiP//Z --------------010405070808080401090901 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="postbox-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="postbox-contact.jpg" /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgK CgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkL EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAAR CAAZABkDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1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Bn3tvNFlZFUBXhmibrhl6HBUjjBFbp 2E1czpviB4xl17xD4nj8RX1tqniiWVtTubS4ktzPFIMNAyowVo8Y4YE8Dml8Q43jLmiVLrxN rGoRWdtqeoPPDYyb4zJyR0zk9T071zUsJRw83UpRs2e9mXE2aZxhKWCx1VzhTu4337avd9lc of8ACsPid/0TnxR/4KLj/wCIrpPnjvv2zP8Ak574gf8AYST/ANER0DR4vQM6j4V/8lP8If8A Ye0//wBKEoA/digg/9k= --------------010405070808080401090901-- --------------030602080300050105020608-- . Lawrence Banahan

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

RE: Formulas.db + Users.db (1997) OT:Stock Quotes (2000) Auth.net and SIM (2003) billing system (2003) Smith Micro - no competition (2000) textA (1998) [WebDNA] Reformatting database headers (2009) [ot] G5 Desktop as Server (2004) [OT] Theiving B*****ds (2004) refreshing IE with posted .tmpl (1997) Shopping Cart Problem (1998) Email address checker (2002) [OT] Bad Cookie / Internet Option / Internet Explorer (2004) Re[2]: 2nd WebCatalog2 Feature Request (1996) If Empty ? (1997) Dumb Question about Docs (1997) Page Hanging (2006) Jail Break...Please! (2000) WebCatalog on Solaris? (2000) Problems with [Search] param - Mac Plugin b15 (1997)