Class PropertyEncryptor

java.lang.Object
craterdog.security.PropertyEncryptor

public class PropertyEncryptor extends Object
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 Details

    • PropertyEncryptor

      public PropertyEncryptor()
  • Method Details

    • main

      public static void main(String[] args)
      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.