Re: [WebDNA] Encrypt Method SHA256

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 114407
interpreted = N
texte = 2026 Plain SHA256 is just a hash. The seed is ignored when generating the = SHA256 hash. > On Sep 27, 2018, at 21:42, McMahon, Dustin = wrote: >=20 > I am working on connecting a service account to the google drive api. = Google requires that the signature is encrypted using SHA256 and a seed = value. I was getting an error with my signature saying it was invalid. = I wrote a small bit of server code to do a test on the encryption just = to see what I was getting, here is the code from my test: > =20 > [text]string_val=3Dbobs your uncle[/text] > =20 > [string_val] > [text show=3DT]one=3D[encrypt = method=3DSHA256][string_val][/encrypt][/text] > [text show=3DT]two=3D[encrypt = method=3DSHA256&seed=3D87712349843][string_val][/encrypt][/text] > =20 > [Showif [one]=3D[two]]SAME![/showif] > =20 > One of them takes a seed value, the other does not, I would assume = that the resulting strings would not match but they do. Here is what I = am getting when I call the page in a browser: > =20 > bobs your uncle > fac0c89f9e701ded2bc09d4ffc330f598c0861c5a66b5e364abc258d547e4009 > fac0c89f9e701ded2bc09d4ffc330f598c0861c5a66b5e364abc258d547e4009 > =20 > SAME! > =20 > Not sure if this is a bug or just me assuming something that is not = correct. If this is not a bug could someone help me understand what is = happening under the hood? > =20 > Thank you, > =20 > Dustin McMahon --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Encrypt Method SHA256 (christophe.billiottet@webdna.us 2018)
  2. Re: [WebDNA] Encrypt Method SHA256 (WebDNA Solutions 2018)
  3. [WebDNA] Encrypt Method SHA256 ("McMahon, Dustin" 2018)
2026 Plain SHA256 is just a hash. The seed is ignored when generating the = SHA256 hash. > On Sep 27, 2018, at 21:42, McMahon, Dustin = wrote: >=20 > I am working on connecting a service account to the google drive api. = Google requires that the signature is encrypted using SHA256 and a seed = value. I was getting an error with my signature saying it was invalid. = I wrote a small bit of server code to do a test on the encryption just = to see what I was getting, here is the code from my test: > =20 > [text]string_val=3Dbobs your uncle[/text] > =20 > [string_val] > [text show=3DT]one=3D[encrypt = method=3DSHA256][string_val][/encrypt][/text] > [text show=3DT]two=3D[encrypt = method=3DSHA256&seed=3D87712349843][string_val][/encrypt][/text] > =20 > [Showif [one]=3D[two]]SAME![/showif] > =20 > One of them takes a seed value, the other does not, I would assume = that the resulting strings would not match but they do. Here is what I = am getting when I call the page in a browser: > =20 > bobs your uncle > fac0c89f9e701ded2bc09d4ffc330f598c0861c5a66b5e364abc258d547e4009 > fac0c89f9e701ded2bc09d4ffc330f598c0861c5a66b5e364abc258d547e4009 > =20 > SAME! > =20 > Not sure if this is a bug or just me assuming something that is not = correct. If this is not a bug could someone help me understand what is = happening under the hood? > =20 > Thank you, > =20 > Dustin McMahon --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 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:

dynamic list of form variables (2003) Location of Browser Info.txt file (1997) Banners (1997) [date format] w/in sendmail (1997) WebCat2b12--[searchstring] bug (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) MacAuthorize hub, no modal password dialog? (1997) Search or Lookup before Append (1998) Trouble with adding multiple items to cart (1999) Hiding HTML and page breaks (1997) RE: Migrating to NT (1997) Number searching/formats (1998) download a file (2001) Emailer setup (1997) FoundItems (2000) Problem with encrypted cookies (2000) Reminder... (2003) RE: Still Learning (1997) WC --> printer (1998) I can help! (1996)