GoConqr has a new look! Let us know what you think.

Notes

Hash Functions

lissy93 English 1 page

Content of the notes (1)

Page 1

Introduction

One way hash functions are easy to compute, but hard to reverse

Sometimes they have no inverse at all

One way hash functions are usually a lot smaller than the origional input

Examples

Brute force can be used against simple one-way hash functions

MD5

MD4

SHA

RIPE-MD-60

Hashing

Hashing is used for hash tables data so that there is a direct relation to the data content and storage location

Instead of storing each data item in the next free memory location, it's data location is determined by a an algorithem that uses a key part of the data

We can then access that bit of data using it's key value alone

Simple hash function methods

Truncation

Mid-square

Folding

Take a few of the first or last characters of the key as the hash code. Works well if the characters are well distributed

The key is squared and the middle digits of the re sult are used as the hashed value

the key is partitioned into several parts and the su m of the parts is used to produce the hash code

One-way hash functions

Simple hash functions cause collisions - where there is more than one hash keys resulting in the same index.

For security, we need unique keys to be generated. This is known as collision-free hashing

Needs to be easy to compute, but hard to inverse

Passwords

It is possible to extract authentication information from the target system

Plain text passwords should NEVER be stored

The same hashing function is used when the user logs in, and it is compared with the value in the database

If the files containing the hashed is stolen, the thief has not got the passwords, just the irreversable hashes

If the thief knows the length of password, then it is possible to crack. This can be made harder by adding a salt.

Hash Salt

Hash salt is additional data that is used as an additional input to a one-way hash function

Helps defend against dictionary attacks

A new salt is randomly generated for each password

Usually the the salt and the password are concatenated and processed with a cryptographic hash function

The resulting output is then stored with the salt in the database

These are used for storing nearly all user credentials

Hash Functions

Information

Description
Foundations of Computational Security Alicia Sykes (C) 2014 http://as93.net
Created by
lissy93
Views
72
History
  • Created by lissy93 · May 2, 2014
  • Copied to Note by lissy93 · May 2, 2014
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?