com.ibm.commerce.emarketing.utils

Class EncryptHelper

  • java.lang.Object
    • com.ibm.commerce.emarketing.utils.EncryptHelper


  • public class EncryptHelper
    extends java.lang.Object
    A simple encryption and decryption utility class used to encrypt and decrypt query strings (allowing the system to hide identifiers, from the end user).
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EncryptHelper() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String decrypt(byte[] bytes)
      Decrypts the byte array passed by converted the array to String and using com.ibm.commerce.ejb.helpers.nc_crypt.decrypt().
      static java.lang.String decrypt(java.lang.String str)
      Decrypts the String passed using com.ibm.commerce.ejb.helpers.nc_crypt.decrypt().
      static java.lang.String encrypt(java.lang.String str)
      Encrypts the String passed using com.ibm.commerce.ejb.helpers.nc_crypt.encrypt().
      static byte[] encryptToBytes(java.lang.String str)
      Encrypts the String passed using com.ibm.commerce.ejb.helpers.nc_crypt.stringToBytes().
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • EncryptHelper

        public EncryptHelper()
    • Method Detail

      • decrypt

        public static java.lang.String decrypt(byte[] bytes)
        Decrypts the byte array passed by converted the array to String and using com.ibm.commerce.ejb.helpers.nc_crypt.decrypt().
        Parameters:
        bytes - The byte array to decrypt.
        Returns:
        The decrypted byte array as a String.
      • decrypt

        public static java.lang.String decrypt(java.lang.String str)
        Decrypts the String passed using com.ibm.commerce.ejb.helpers.nc_crypt.decrypt().
        Parameters:
        str - The String to decrypt.
        Returns:
        The decrypted String.
      • encrypt

        public static java.lang.String encrypt(java.lang.String str)
        Encrypts the String passed using com.ibm.commerce.ejb.helpers.nc_crypt.encrypt().
        Parameters:
        str - The String to encrypt.
        Returns:
        The encrypted String.
      • encryptToBytes

        public static byte[] encryptToBytes(java.lang.String str)
        Encrypts the String passed using com.ibm.commerce.ejb.helpers.nc_crypt.stringToBytes().
        Parameters:
        str - The String to encrypt.
        Returns:
        The encrypted String as a byte array.