public class Encr extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_ENCRYPTED_PREFIX
The word that is put before a password to indicate an encrypted form.
|
Constructor and Description |
---|
Encr() |
Modifier and Type | Method and Description |
---|---|
String |
buildSignature(String mac,
String username,
String company,
String products)
Deprecated.
|
static boolean |
checkSignatureShort(String signature,
String verify)
Deprecated.
|
static String |
decryptPassword(String encrypted) |
static String |
decryptPasswordOptionallyEncrypted(String password)
Decrypts a password if it contains the prefix "Encrypted "
|
static String |
encryptPassword(String password) |
static String |
encryptPasswordIfNotUsingVariables(String password)
Encrypt the password, but only if the password doesn't contain any variables.
|
static String |
getSignatureShort(String signature)
Deprecated.
|
boolean |
init()
Deprecated.
|
static void |
init(String encoderPluginId) |
static void |
main(String[] args)
Create an encrypted password
|
public static final String PASSWORD_ENCRYPTED_PREFIX
@Deprecated public boolean init()
public static void init(String encoderPluginId) throws KettleException
KettleException
@Deprecated public String buildSignature(String mac, String username, String company, String products)
mac
- username
- company
- products
- @Deprecated public static final boolean checkSignatureShort(String signature, String verify)
signature
- verify
- @Deprecated public static final String getSignatureShort(String signature)
signature
- public static final String encryptPasswordIfNotUsingVariables(String password)
password
- The password to encryptpublic static final String decryptPasswordOptionallyEncrypted(String password)
password
- The encrypted passwordpublic static void main(String[] args) throws KettleException
args
- the password to encryptKettleException