On the back end I needed to create javascript that looked like this:
The user hash needed to be a SHA256 hash of the users email address and the unique "salt" or secret key provided by intercom.io on a user account basis.
The problem was that I'm using Vbscript/classic ASP so was having trouble sorting this out with the limited VBScript library.
The solution was found courtesy of:
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
* in FIPS 180-2
* Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
* Adapted into a WSC for use in classic ASP by Daniel O'Malley
* (based on an SHA-1 example by Erik Oosterwaal)
* for use with the Amazon Product Advertising API
*/
Basically you create a stand alone file called sha256.wsc that lives in the same directory as the function - then pass in the appropriate variables.
VBScript Function:
The contents for sha256.wsc follow at the end of the post. Good luck and happy coding
Great website, looks very professional. Keep up the good work!
ReplyDeleteQTP Training in Chennai
QTP Training
QTP Training Institutes in Chennai
QTP Training in Adyar
LoadRunner Training in Chennai
Loadrunner Training
javascript training in chennai
core java training in chennai
Great Article Cloud Computing Projects
DeleteNetworking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Incredible Posts!!!Keep doing...
ReplyDeleteJava training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery
This comment has been removed by the author.
ReplyDeleteYou actually make it seem like it's really easy with your acting, but I think it's something I think I would never understand. I find that too complicated and extremely broad. I look forward to your next message. I'll try to figure it out!
ReplyDeleteBusiness Analytics Course in Bangalore
I will very much appreciate the writer's choice for choosing this excellent article suitable for my topic. Here is a detailed description of the topic of the article that helped me the most.
ReplyDeleteData Analytics Course in Bangalore
Excellent blog thanks for sharing the valuable information..it becomes easy to read and easily understand the information.
ReplyDeleteUseful article which was very helpful. also interesting and contains good information.
to know about python training course , use the below link.
Python Training in chennai
Python Course in chennai
You have completed certain reliable points there. I did some research on the subject and found that almost everyone will agree with your blog.
ReplyDeleteData Science Training in Bangalore
Really wonderful blog completely enjoyed reading and learning to gain vast knowledge. Eventually, this blog helps in developing certain skills which in turn helpful in implementing those skills. Thanking the blogger for delivering such beautiful content and keep posting the contents in the upcoming days.
ReplyDeleteDigital Marketing Training in Bangalore
Really wonderful blog completely enjoyed reading and learning to gain vast knowledge. Eventually, this blog helps in developing certain skills which in turn helpful in implementing those skills. Thanking the blogger for delivering such beautiful content and keep posting the contents in the upcoming days.
ReplyDeleteDigital Marketing Training in Bangalore
Truly incredible blog found to be very impressive due to which the learners who go through it will try to explore themselves with the content to develop the skills to an extreme level. Eventually, thanking the blogger to come up with such phenomenal content. Hope you arrive with similar content in the future as well.
ReplyDeleteMachine Learning Course in Bangalore
I've been using this for several years and just discovered a bug in the code.
ReplyDeleteoutput = encoding[0] + output;
needs to be changed to
output = encoding.charAt(0) + output;
Great thanks for sharing this article. Much thanks again. Cool.hospitality wifi solution
ReplyDeleteIt is late to find this act. At least one should be familiar with the fact that such events exist. I agree with your blog and will come back to inspect it further in the future, so keep your performance going.
ReplyDeleteDigital Marketing Training in Bangalore
A good blog always contains new and exciting information, and reading it I feel like this blog really has all of these qualities that make it a blog.
ReplyDeleteArtificial Intelligence Training in Bangalore
A good blog always contains new and exciting information and as I read it I felt that this blog really has all of these qualities that make a blog.
ReplyDeleteData Science Training in Bangalore
Really, this article is truly one of the best in article history. I am a collector of old "items" and sometimes read new items if I find them interesting. And this one that I found quite fascinating and should be part of my collection. Very good work!
ReplyDeleteDigital Marketing Training in Bangalore
It's a smart blog. I mean it seriously. You have so much knowledge on this subject and so much passion. He also knows how to get people to join him, obviously from the answers.
ReplyDeleteData Science Course in Nagpur
Informative blog
ReplyDeletebusiness analytics course in agra
I have read your article, it is very informative and useful to me, I admire the valuable information you offer in your articles. Thanks for posting it ...
ReplyDeleteBusiness Analytics Course in Patna
Thanks for sharing this valuable information, we also provide instagram video download and,
ReplyDeletereally appreciate your hard work and good research that help us in for of your good valuable article. Keep updating us with your awesome content.
SketchUp Pro Crack is a 3D plan programming that permits you to draw outlines, 3D items, computer games, and other plan objects. Sketchup Free License
ReplyDeleteThursday Wishes, Quotes and Greetings. Free Thursday images for whatsapp collection. You will find below a curated collection of good morning images Thursday Quotes
ReplyDelete