code: public static String decrypt(Key key, String content) throws Exception {
          try {
              Cipher cipher = Cipher.getInstance(CRYPTO_ALGORITHM);
              cipher.init(Cipher.DECRYPT_MODE, key);
              return new String(cipher.doFinal(Base64.decodeBase64(content)));
          } catch (Exception e) {
              log.error("Error while decrypting", e);
              throw e;
              
          }
      }
docs: Decrypts the content with the specified key using the default algorithm.
  
  @param key The cryptographic key.
  @param content The content to decrypt.
  @return The decrypted content.
  @throws Exception Unspecified exception.