se.unlogic.standardutils.crypto
Class EncryptionUtils

java.lang.Object
  extended by se.unlogic.standardutils.crypto.EncryptionUtils

public class EncryptionUtils
extends Object


Constructor Summary
EncryptionUtils()
           
 
Method Summary
static String hash(File file, String algorithm)
           
static String hash(File file, String algorithm, ProgressMeter progressMeter)
           
static String hash(String string, String algorithm)
           
static String hash(String string, String algorithm, String encoding)
           
static String mysqlPasswordHash(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionUtils

public EncryptionUtils()
Method Detail

hash

public static String hash(String string,
                          String algorithm)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

hash

public static String hash(String string,
                          String algorithm,
                          String encoding)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

hash

public static String hash(File file,
                          String algorithm)
                   throws IOException
Throws:
IOException

hash

public static String hash(File file,
                          String algorithm,
                          ProgressMeter progressMeter)
                   throws IOException
Throws:
IOException

mysqlPasswordHash

public static String mysqlPasswordHash(String string)


Copyright © 2011. All Rights Reserved.