Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-10-2005, 02:00 PM   #1 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 14

Python1564

Default Need Help For Class

I was given an assignment for my Java programming class and i have no idea how to do it.
i was told to write a password encoded program
can anyone help?
Python1564 is offline  
Old 03-10-2005, 03:43 PM   #2 (permalink)
 
Ultra Techie

Join Date: Oct 2003

Posts: 544

fitzjj

Default

What you want is

password > encryption algorithm > encoded password

A good password encryption algorithm is not reversible. i.e. by taking the resulting encoded password you should not be able to get back to the origional password. Therefore o check the password has been entered correctly you need to encrypt the input using the same algorithm and compare it to the stored encryped password

Also no two passwords should encode to the same value.


A really poor password algorithm may take the password string and replace each character by the next in the alphabet eg a would become b. so:

password > encryption algorithm > qbttxpse

that would be pretty crude and easy to figure out, but it gives the idea. What you want to do is perform a calculation on the string to give the value.

Hope that helps a bit
fitzjj is offline  
 
Closed Thread

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On