jitas.util
Class Encryptor

java.lang.Object
  extended by jitas.util.Encryptor

public class Encryptor
extends java.lang.Object

The encryptor class encrypts the real password and return it back for saving and authentication purpose.

Version:
05 July 2007
Author:
DeathMarch

Constructor Summary
Encryptor()
           
 
Method Summary
 java.lang.String encrypt(java.lang.String password)
          Encrypt the password using SHA algorithm
static Encryptor getEncryptor()
          Create a new object if it does not exist or return the existing instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encryptor

public Encryptor()
Method Detail

encrypt

public java.lang.String encrypt(java.lang.String password)
Encrypt the password using SHA algorithm

Parameters:
password - the password that needs to be encrypted
Returns:
hash Encrypted password

getEncryptor

public static Encryptor getEncryptor()
Create a new object if it does not exist or return the existing instance

Returns:
An instance of an encryptor