Package org.pentaho.di.core.encryption
Class Encr
java.lang.Object
org.pentaho.di.core.encryption.Encr
This class handles basic encryption of passwords in Kettle. Note that it's not really encryption, it's more
obfuscation. Passwords are difficult to read, not impossible.
- Since:
- 17-12-2003
- Author:
- Matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe word that is put before a password to indicate an encrypted form. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final booleancheckSignatureShort(String signature, String verify) Deprecated.static final StringdecryptPassword(String encrypted) static final StringdecryptPasswordOptionallyEncrypted(String password) Decrypts a password if it contains the prefix "Encrypted "static final StringencryptPassword(String password) static final StringencryptPasswordIfNotUsingVariables(String password) Encrypt the password, but only if the password doesn't contain any variables.static final StringgetSignatureShort(String signature) Deprecated.booleaninit()Deprecated.static voidstatic voidCreate an encrypted password
-
Field Details
-
PASSWORD_ENCRYPTED_PREFIX
The word that is put before a password to indicate an encrypted form. If this word is not present, the password is considered to be NOT encrypted- See Also:
-
-
Constructor Details
-
Encr
public Encr()
-
-
Method Details
-
init
Deprecated. -
init
- Throws:
KettleException
-
checkSignatureShort
Deprecated.Old signature code, used in license keys, from the Kettle 1.x days.- Parameters:
signature-verify-- Returns:
-
getSignatureShort
Deprecated.Old Kettle 1.x code used to get a short signature from a long version signature for license checking.- Parameters:
signature-- Returns:
-
encryptPassword
-
decryptPassword
-
encryptPasswordIfNotUsingVariables
Encrypt the password, but only if the password doesn't contain any variables.- Parameters:
password- The password to encrypt- Returns:
- The encrypted password or the
-
decryptPasswordOptionallyEncrypted
Decrypts a password if it contains the prefix "Encrypted "- Parameters:
password- The encrypted password- Returns:
- The decrypted password or the original value if the password doesn't start with "Encrypted "
-
main
Create an encrypted password- Parameters:
args- the password to encrypt- Throws:
KettleException
-