Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When any Process Flow executes, all temporary files are stored in a repository folder. To prevent it from misuse, you may want to secure the folder. You can secure the repository folder by encrypting data in the folder. 

...

  1. Open Command Prompt.
  2. Go to the directory where JRE is installed (for example, C:/Program Files/Java/jre8/bin).
  3. Run the following Keytool command to create a Keystore.

    For Windows:

    keytool.exe -genseckey -keystore <Keystore_path> -storetype <store_type> -storepass <Keystore_password> -keyalg AES -keysize 256 -alias <alias_name> -keypass <Key_password>

    For Linux:

    keytool -genseckey -keystore <Keystore_path> -storetype <store_type> -storepass <Keystore_password> -keyalg AES -keysize 256 -alias <alias_name> -keypass <Key_password>

    where,
              <Keystore_path> is the location of the Keystore. If the Keystore does not exist, the tool will create a new store. 

              <store_type> is the type of store. Only JCEKS is supported.

              <Keystore_password> is the password related to the Keystore. 

              <alias_name> is the name to be given to the newly created key.

              <Key_password> is the password protecting the use of the key.  

    The Keystore is generated at the specified location.  


  4. Exit from the Command Prompt.

...

To encrypt or decrypt a folder:

  1. Click here Download Encryption utility.
  2. Extract the Encryption_Utility.zip file in the bin folder where Adeptia Suite is installed, for example, C:/Program Files/Adeptia Suite/AdeptiaSuite-x.x/bin/Encryption_utility.
  3. Open the extracted folder.
  4. Open encryption-info.properties file in any Text Editor.
  5. Provide the values for the following properties.

    Property Name
    Description
    encryption.repository.pathPath of the folder to encrypt or decrypt. If you are using the utility in the Windows environment, separate the path by either using a backward slash "\\" (C:\\Smith\\Encrypt) or forward slash "/" (C:/Smith/Encrypt).
    encryption.keystore.locationKeystore location. If you are using the utility in the Windows environment, separate the path by either using a backward slash "\\" (D:\\Encrypt\\keystore.jck) or forward slash "/" (D:/Encrypt/keystore.jck).
    encryption.keystore.aliasAlias name for the Keystore.
    encryption.key.passwordPassword of the key.
    encryption.keystore.passwordPassword of the Keystore.
    encryption.excluded.file.patternRegex pattern to exclude files. As per the defined pattern, the utility will not encrypt the file in a format where there are numerical values (up to 30 characters) on both sides of the exclamation sign. For example, 7643689!986433567886522467.

     

  6. Save the file.
  7. Go to the extracted folder. 
  8. For Windows, double-click encrypt.bat.
    For Linux, execute encrypt.sh on the Terminal.
    The utility starts running.
  9. To encrypt the folder, press 1.
    To decrypt the folder, press 2.



  10. The utility starts encrypting or decrypting the folder. A message "Encryption or Decryption has successfully completed" indicates successful encryption or decryption.

    Info
    You can view the details of the execution from the encryptionUtils.log file available at C:/Program Files/Adeptia Suite/AdeptiaSuite-x.x/bin/Encryption_utility. You can also find the reason for the failure of the execution from this file.