public class BasicCryptoEngine extends Object implements CryptoEngine
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_CRYPTO |
Constructor and Description |
---|
BasicCryptoEngine() |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String salt,
String password,
String encryptedText) |
String |
encrypt(String salt,
String password,
String textToEncrypt) |
String |
generateSalt() |
String |
getDescriptor() |
String |
hash(String salt,
String password) |
public static final String BASIC_CRYPTO
public String getDescriptor()
getDescriptor
in interface CryptoEngine
public String encrypt(String salt, String password, String textToEncrypt) throws JasDBSecurityException
encrypt
in interface CryptoEngine
JasDBSecurityException
public String decrypt(String salt, String password, String encryptedText) throws JasDBSecurityException
decrypt
in interface CryptoEngine
JasDBSecurityException
public String hash(String salt, String password) throws JasDBSecurityException
hash
in interface CryptoEngine
JasDBSecurityException
public String generateSalt()
generateSalt
in interface CryptoEngine
Copyright © 2015. All rights reserved.