java.lang.Object
com.aeontronix.enhancedmule.tools.cli.properties.CryptoHelper

public class CryptoHelper extends Object
  • Field Details

    • ENCRYPTED_PROP_REGEX

      public static final Pattern ENCRYPTED_PROP_REGEX
  • Constructor Details

    • CryptoHelper

      public CryptoHelper()
  • Method Details

    • crypt

      public static String crypt(com.aeontronix.kryptotek.Key key, String value, boolean encrypt) throws com.aeontronix.kryptotek.EncryptionException, com.aeontronix.kryptotek.DecryptionException
      Throws:
      com.aeontronix.kryptotek.EncryptionException
      com.aeontronix.kryptotek.DecryptionException
    • encrypt

      public static String encrypt(com.aeontronix.kryptotek.Key key, String value, boolean noExpression) throws com.aeontronix.kryptotek.EncryptionException
      Throws:
      com.aeontronix.kryptotek.EncryptionException
    • decrypt

      public static String decrypt(com.aeontronix.kryptotek.Key key, String value) throws com.aeontronix.kryptotek.DecryptionException
      Throws:
      com.aeontronix.kryptotek.DecryptionException
    • findSecureProperties

      @NotNull public static @NotNull Set<String> findSecureProperties(@NotNull @NotNull File file) throws IOException
      Throws:
      IOException
    • encryptProperties

      public static void encryptProperties(com.aeontronix.kryptotek.Key key, File descriptorFile, File propertiesFile) throws IOException, com.aeontronix.kryptotek.EncryptionException
      Throws:
      IOException
      com.aeontronix.kryptotek.EncryptionException
    • decryptProperties

      public static void decryptProperties(com.aeontronix.kryptotek.Key key, File descriptorFile, File propertiesFile) throws IOException, com.aeontronix.kryptotek.DecryptionException
      Throws:
      IOException
      com.aeontronix.kryptotek.DecryptionException