fr.xephi.authme.security.crypts
Class PLAINTEXT

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

public class PLAINTEXT
extends java.lang.Object
implements EncryptionMethod


Constructor Summary
PLAINTEXT()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PLAINTEXT

public PLAINTEXT()
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