source: proiecte/HadoopA51/src/java/ro/pub/cs/pp/a51hadoop/algorithm/HashReducer.java @ 166

Last change on this file since 166 was 166, checked in by (none), 14 years ago

HadoopA51: imported git repository from github

File size: 538 bytes
Line 
1package ro.pub.cs.pp.a51hadoop.algorithm;
2/*
3 * A reduction function R that maps hash values back into secret values.
4 *
5 * There are many possible implementations for this function, and it's only
6 * important that it behaves pseudorandomly.
7 *
8 * By alternating the hash function with the reduction function,
9 * chains of alternating passwords and hash values are formed.
10 */
11public interface HashReducer
12{
13        /*
14         * Apply the current Reducer on the given hash.
15         *
16         * @return a new secret value
17         */
18        public String apply(String txt);
19}
20
Note: See TracBrowser for help on using the repository browser.