[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
Hash

(Computer science) Hash Function

A hash function maps from a large value to a smaller value. For instance, a variable length string could be mapped to an integer value or a smaller string.

Use of Hash functions

Password encryption

One use of hashes is to encrypt passwords. If a hash function uses a large amount of CPU cycles, the hash of a password can be stored in a password file instead of the actual password. The system can verify the password by hashing the input password and comparing the hashed values. This works because a hash is generally a one way function, since it is mapping a large  ?domain to a smaller  ?range

Maps

A hash algorithm is often used in a Hashtable, also known as a Map, since it can map an input Key to an output Value

last edited (November 2, 2006) by bilderbikkel, Number of views: 4535, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.