Re: [WebDNA] HMAC-SHA1 Encryption
This WebDNA talk-list message is from 2013
It keeps the original formatting.
numero = 110296
interpreted = N
texte = In this case, WebDNA transfers the string to openssl. It does not =interfere with the result. It seems to me your result is correct as sha1 =produces a combination of lower case text and numbers. I suppose you can =find the proper openssl string (or php string as it is easy to guess the =openssl variant) on the internet.- chrisOn Mar 31, 2013, at 10:17, Stuart Tremain
wrote:> Chris>=20> I tried some experiments, based on some google research.>=20> echo -n "AmazonS3ListAllMyBuckets2013-03-31T06:48:36.000Z" | openssl =dgst -sha1 -hmac "fexz1rt1sV3SXRGHAGu6w2vXC7z/kEgfRD3TdSI/">=20> Result is:> (stdin)=3D 23e79d1a4f1eded66934c45dd1c3a0677df22cf5> but it is incorrect.>=20> This is the correct result:> I+edGk8e3tZpNMRd0cOgZ33yLPU=3D>=20> Which I got from here:>=20> http://hash.online-convert.com/sha1-generator>=20> I can't work out how to get the shorter result with the =3D on the end>=20> Stuart>=20>=20>=20> On 31/03/2013, at 5:40 PM, christophe.billiottet@webdna.us wrote:>=20>> Hi Stuart! try [shell]echo -n 'myString' | openssl sha1[/shell]>>=20>> - chris>>=20>>=20>> On Mar 31, 2013, at 9:11, Stuart Tremain wrote:>>=20>>> On a Ubuntu 12.04 server if it makes a difference.>>>=20>>>=20>>> On 31/03/2013, at 5:05 PM, Stuart Tremain =wrote:>>>=20>>>> For Amazon I need to create a signature which is HMAC-SHA1 =encryption with a seed of a test string.>>>>=20>>>> How can I do this with WebDNA ?>>>>=20>>>>=20>>>>=20>>>> Regards>>>>=20>>>> Stuart Tremain>>>> IDFK Web Developments>>>> AUSTRALIA>>>> webdna@idfk.com.au>>>>=20>>>>=20>>>>=20>>>>=20>>>> --------------------------------------------------------->>>> 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>>>=20>>> --------------------------------------------------------->>> 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>>=20>> --------------------------------------------------------->> 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>=20> --------------------------------------------------------- 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
Associated Messages, from the most recent to the oldest:
In this case, WebDNA transfers the string to openssl. It does not =interfere with the result. It seems to me your result is correct as sha1 =produces a combination of lower case text and numbers. I suppose you can =find the proper openssl string (or php string as it is easy to guess the =openssl variant) on the internet.- chrisOn Mar 31, 2013, at 10:17, Stuart Tremain wrote:> Chris>=20> I tried some experiments, based on some google research.>=20> echo -n "AmazonS3ListAllMyBuckets2013-03-31T06:48:36.000Z" | openssl =dgst -sha1 -hmac "fexz1rt1sV3SXRGHAGu6w2vXC7z/kEgfRD3TdSI/">=20> Result is:> (stdin)=3D 23e79d1a4f1eded66934c45dd1c3a0677df22cf5> but it is incorrect.>=20> This is the correct result:> I+edGk8e3tZpNMRd0cOgZ33yLPU=3D>=20> Which I got from here:>=20> http://hash.online-convert.com/sha1-generator>=20> I can't work out how to get the shorter result with the =3D on the end>=20> Stuart>=20>=20>=20> On 31/03/2013, at 5:40 PM, christophe.billiottet@webdna.us wrote:>=20>> Hi Stuart! try [shell]echo -n 'myString' | openssl sha1[/shell]>>=20>> - chris>>=20>>=20>> On Mar 31, 2013, at 9:11, Stuart Tremain wrote:>>=20>>> On a Ubuntu 12.04 server if it makes a difference.>>>=20>>>=20>>> On 31/03/2013, at 5:05 PM, Stuart Tremain =wrote:>>>=20>>>> For Amazon I need to create a signature which is HMAC-SHA1 =encryption with a seed of a test string.>>>>=20>>>> How can I do this with WebDNA ?>>>>=20>>>>=20>>>>=20>>>> Regards>>>>=20>>>> Stuart Tremain>>>> IDFK Web Developments>>>> AUSTRALIA>>>> webdna@idfk.com.au>>>>=20>>>>=20>>>>=20>>>>=20>>>> --------------------------------------------------------->>>> 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>>>=20>>> --------------------------------------------------------->>> 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>>=20>> --------------------------------------------------------->> 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>=20> --------------------------------------------------------- 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
christophe.billiottet@webdna.us
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:
Exclamation point (1997)
Nested tags count question (1997)
WebMerchant 2.1.2 (1998)
PSC recommends what date format yr 2000??? (1997)
Expected behavior? (1998)
Just testing my subscription (2003)
Configuring E-mail (1997)
RE: question on [delete] (1998)
[LOOKUP] (1997)
[OT] DOD (2002)
PDF template hell (2000)
WebCatalog/Mac 2.1b2 - PIXO (1997)
WebCat2b15MacPlugin - showing [math] (1997)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
WebCatalog Plug-in for Webstar. (1997)
Payment calculator ?? (2000)
Non-Cart Files in Shopping Cart Folder (1997)
WC2b15 File Corruption (1997)
can't get WebDNA to display my SQL primary keys via ODBC (2003)
ShowNext (1997)