Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 14th, 2010, 04:47 AM
Registered User
 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using sha1 passwords in Strophe.js

Hello I`m building an simple application using Symfony & Strophe.js . In my db passwords are stored using sha1 algolrithm but in every example from book passwords using to connect are in plain text. I`m trying to figure out how to connect using my sha1 passwords from db but no luck. Is there any swich enabling this in Strophe js connection method ? EDIT : I can use md5 algorithm to hash passwords but how use md5 connection type in Strophe ?

Last edited by semper; June 14th, 2010 at 05:40 AM..
  #2 (permalink)  
Old June 28th, 2010, 02:15 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by semper View Post
Hello I`m building an simple application using Symfony & Strophe.js . In my db passwords are stored using sha1 algolrithm but in every example from book passwords using to connect are in plain text. I`m trying to figure out how to connect using my sha1 passwords from db but no luck. Is there any swich enabling this in Strophe js connection method ? EDIT : I can use md5 algorithm to hash passwords but how use md5 connection type in Strophe ?
Strophe will need the plain text password in order to hash it and do authentication with the server. With TLS and DIGEST-MD5 on the server, there is never a clear text password sent over the wire though.

Strophe will automatically use the strongest authentication mechanism offered by the server. If it advertises DIGEST-MD5 as an available auth mechanism, Strophe will use that. If that is not available it will try SASL PLAIN.

Over an encrypted channel, these are both acceptable. Over an unencrypted channel, SASL PLAIN is not recommended, and for that reason, most servers won't advertise support until after TLS is established.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sha1 hashing and base64 encoding sidathkp VBScript 1 January 13th, 2010 08:33 PM
[HOW TO] Decode / Decrypt Sha1 ??? oscarestany PHP How-To 1 August 6th, 2007 05:49 PM
password encode sha1 all records keyvanjan ASP.NET 2.0 Basics 15 January 23rd, 2007 07:01 PM
SHA1 Encryption/Decryption help kakko72 VS.NET 2002/2003 7 November 15th, 2004 07:20 PM
SHA1 Encryption/Decryption help kakko72 General .NET 2 April 16th, 2004 03:12 PM



All times are GMT -4. The time now is 03:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.