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
Modifier and TypeFieldDescriptionstatic final String
The word that is put before a password to indicate an encrypted form. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
checkSignatureShort
(String signature, String verify) Deprecated.static final String
decryptPassword
(String encrypted) static final String
decryptPasswordOptionallyEncrypted
(String password) Decrypts a password if it contains the prefix "Encrypted "static final String
encryptPassword
(String password) static final String
encryptPasswordIfNotUsingVariables
(String password) Encrypt the password, but only if the password doesn't contain any variables.static final String
getSignatureShort
(String signature) Deprecated.boolean
init()
Deprecated.static void
static void
Create 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
-