Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICan we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?
Previous
 
Next
New Post
6/4/2008 4:03 AM
 

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 8:33 AM
 

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 8:42 AM
 

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 10:00 AM
 

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 10:39 AM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICan we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out