public final class Secure extends Object
| Constructor and Description |
|---|
Secure() |
| Modifier and Type | Method and Description |
|---|---|
static String |
base64Decode(String source) |
static String |
base64Encode(String source) |
static String |
generate() |
static String |
generate(int length) |
static byte[] |
hashPassword(char[] password,
byte[] salt) |
static byte[] |
hashPassword(char[] password,
byte[] salt,
int iterationCount,
int keySize) |
static boolean |
matches(byte[] passwordHash,
char[] password,
byte[] salt) |
static boolean |
matches(byte[] passwordHash,
char[] password,
byte[] salt,
int iterationCount,
int keySize) |
static String |
md5(String source) |
static byte[] |
nextSalt() |
static String |
state() |
public static String generate()
public static String generate(int length)
public static byte[] hashPassword(char[] password,
byte[] salt)
throws GeneralSecurityException
public static byte[] hashPassword(char[] password,
byte[] salt,
int iterationCount,
int keySize)
throws GeneralSecurityException
public static boolean matches(byte[] passwordHash,
char[] password,
byte[] salt)
throws GeneralSecurityException
public static boolean matches(byte[] passwordHash,
char[] password,
byte[] salt,
int iterationCount,
int keySize)
throws GeneralSecurityException
public static byte[] nextSalt()
public static String state()
Copyright © 2016 iSuper.org. All Rights Reserved.