snaq.db
Class RotDecoder

java.lang.Object
  extended by snaq.db.RotDecoder
All Implemented Interfaces:
PasswordDecoder

public class RotDecoder
extends Object
implements PasswordDecoder

Decodes passwords using the simple ROT13 algorithm. This algorithm is very insecure, and only included as an example.

Author:
Giles Winstanley

Constructor Summary
RotDecoder()
           
 
Method Summary
 char[] decode(String encoded)
          Returns a char array representing the decoded version of the specified encoded password.
static void main(String[] args)
          Method included as convenience for testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotDecoder

public RotDecoder()
Method Detail

decode

public char[] decode(String encoded)
Description copied from interface: PasswordDecoder
Returns a char array representing the decoded version of the specified encoded password.

Specified by:
decode in interface PasswordDecoder
Parameters:
encoded - password to be decoded
Returns:
decoded password as char array.

main

public static void main(String[] args)
                 throws Exception
Method included as convenience for testing.

Throws:
Exception


Copyright © 2013. All Rights Reserved.