Total members 9951 | Gratitudes |It is currently Sat Feb 11, 2012 10:51 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: how to encrypt password in jsp
PostPosted: Fri Oct 24, 2008 5:39 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

i'm a new member of this groups.
now i'm studying web application with jsp

how can i encrypt password from HTML form and
store it in database???

i use mysql for my database

can anyone help me......


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: how to encrypt password in jsp
PostPosted: Fri Oct 24, 2008 5:43 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
There are 2 ways you can do this:
1) Use something like DES encoding (I believe the package is
javax.encryption). This is the preferred way.
2) Come up with your own encryption algorithm. Here's one way of doing it:
a) Pad the incoming password with null '\0' characters
b) Come up with 10 randomization patterns.
c) Create a 1st digit. This tells which randomization pattern to use.
d) Insert random characters according to the randomization pattern
e) Insert substitute characters according to some algorithm.

The more you complex you can make e), the better.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 simple password Strength checker  Java examples  msi_333  0
 Mile200: Removing Username, Password & Login from Header  PHPbb3 support  RohanB  1
 need help with Create USER and Password in JAVA  Java  yaldak7  2
 Encrypt connection string  ASP.NET  AskBot  1
 Protect page using password in PHP  PHP Tutorials  msi_333  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team