Package craterdog.security
Class PropertyEncryptor
java.lang.Object
craterdog.security.PropertyEncryptor
This class provides a tool for encrypting configuration properties. It can be run using the
script that comes with the distribution bundle (.tar.gz file). The result will be the encrypted
and base 32 encoded property value with the required encryption prefix. For example:
$ encrypt-property.sh mypassword
Property Value: mypassword
Creating and initializing the encryption engine...
Creating a special output stream to do the work...
Reading from the input and writing to the encrypting output stream...
Purging any plaintext hanging around in memory...
Encrypted Value: {AES-128}UqlfuKDglzWM7VamTIb8XA==
- Author:
- Derk Norton
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PropertyEncryptor
public PropertyEncryptor()
-
-
Method Details
-
main
The main method for this application.- Parameters:
args
- The arguments that were passed into this program. There should only be one argument, the property value to be encrypted.
-