Class CryptUtils

java.lang.Object
com.vdoc.sdk.commons.utils.CryptUtils

public class CryptUtils extends Object
Crypt utility class
Author:
vmartinon
  • Method Details

    • encrypt

      public static String encrypt(String plainText)
      Encrypt encrypt(String, String) with default key ENCRYPTION_KEY
      Parameters:
      plainText - the text to encrypt
      Returns:
      the encrypted text
      See Also:
    • encrypt

      public static String encrypt(String plainText, String key)
      Encrypt
      Parameters:
      plainText - the text to encrypt
      key - the key to encrypt the text with
      Returns:
      the encrypted text
    • decrypt

      public static String decrypt(String encryptedText)
      Decrypt decrypt(String, String) with default key ENCRYPTION_KEY
      Parameters:
      encryptedText - the text to decrypt
      Returns:
      the decrypted text
      See Also:
    • decrypt

      public static String decrypt(String encryptedText, String key)
      Decrypt
      Parameters:
      encryptedText - the text to decrypt
      key - the key to decrypt the text with
      Returns:
      the decrypted text