fr.xephi.authme.security.crypts
Class XAUTH

java.lang.Object
  extended by fr.xephi.authme.security.crypts.XAUTH
All Implemented Interfaces:
EncryptionMethod

public class XAUTH
extends java.lang.Object
implements EncryptionMethod


Constructor Summary
XAUTH()
           
 
Method Summary
 boolean comparePassword(java.lang.String hash, java.lang.String password, java.lang.String playerName)
           
 java.lang.String getHash(java.lang.String password, java.lang.String salt, java.lang.String name)
           
static java.lang.String getWhirlpool(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAUTH

public XAUTH()
Method Detail

getHash

public java.lang.String getHash(java.lang.String password,
                                java.lang.String salt,
                                java.lang.String name)
                         throws java.security.NoSuchAlgorithmException
Specified by:
getHash in interface EncryptionMethod
salt - (can be an other data like playerName;salt , playerName, etc... for customs methods)
Returns:
Hashing password
Throws:
java.security.NoSuchAlgorithmException

comparePassword

public boolean comparePassword(java.lang.String hash,
                               java.lang.String password,
                               java.lang.String playerName)
                        throws java.security.NoSuchAlgorithmException
Specified by:
comparePassword in interface EncryptionMethod
Returns:
true if password match, false else
Throws:
java.security.NoSuchAlgorithmException

getWhirlpool

public static java.lang.String getWhirlpool(java.lang.String message)