Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?
Previous Previous
 
Next Next
New Post 6/4/2008 2:03 AM
User is offline iadalang
81 posts
10th Ranked


Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Not sure if this is the right forum, but as it concerns JS, here goes :

Can we use the MD5/SHA1 encryption algorithm as provided by <http://pajhome.org.uk/crypt/md5/index.html> for client-side hashing/encryption of the password for the default login (in cases where SSL is absent)? If yes, please let me know which files need to be changed for this to happen (This might sound stupid, but I need to know where to insert the code).

Sorry, I'm not familiar with the DNN Client API, but can this API provide any alternative means of doing the same thing?

 

 

 
New Post 6/4/2008 6:33 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

My initial guess, would be no, however, I guess someone could write a javascript method to do some sort of encryption.  The clientapi has no such functionality.


 
New Post 6/4/2008 6:42 AM
User is offline iadalang
81 posts
10th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Thanks, Jon for your response. So lets say, I have a JS function to do this kind of thing. Where do I have to insert the code. Will it be somewhere in login.ascx? And will I also then need to change or insert any server-side code for this to work?

 
New Post 6/4/2008 8:00 AM
User is offline Brandon Haynes
701 posts
brandonhaynes.org
7th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Hi Iadalang,

Are you also planning on implementing some sort of token-based challenge/response system on the server side?  Simply hashing a password before transmission is not a sufficient method of securing authentication.  What you describe would likely be best accomplished by a custom authentication method based off of DNN's default (in /DesktopModules/Authentication/DNN).  This would be a mildly difficult task for an experienced developer. 

Based on the types of questions you asked in your original post, however, I would strongly recommend sticking with SSL.  Have you considered generating your own SSL certificate (via SelfSSL, in the IIS resource toolkit)?  Such a certificate would yield security during authentication, but you would still have to deal with root trust issues.  This would depend on your target audience.

I always advise against roll-your-own authentication schemes!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 6/4/2008 8:39 AM
User is offline iadalang
81 posts
10th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Hi Brandon,

Yes I presume token-based challenge/response system on the server side would also be necessary using a custom authentication method based off of DNN's default as you said, although that's a difficult job for me to do unless I get further help from these forums. I was just trying to say "Hey, what if I do not have SSL"?

Would it be safe then to conclude that SSL is mandatory for secure transmissions if we are to use DNN?

Do all DNN sites run on SSL? If the answer is No then would it be safe to say that all these sites are vulnerable to sniffing (the clear text password)?


 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP