snaq.db
Class RotDecoder
java.lang.Object
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
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. |
RotDecoder
public RotDecoder()
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