Cisco Systems, Inc.

com.pcube.apps.engage.common
Class CipherUtil

java.lang.Object
  extended by com.pcube.apps.engage.common.CipherUtil

public class CipherUtil
extends java.lang.Object

Author:
uzir

Method Summary
 java.lang.String createErrorMessage(java.lang.String operation, java.lang.String str, byte[] dec, java.lang.Exception e)
           
 java.lang.String decrypt(java.lang.String str)
          Takes a encrypted String as an argument, decrypts and returns the decrypted String.
 java.lang.String encrypt(java.lang.String str)
          Takes a single String as an argument and returns an Encrypted version of that String.
static CipherUtil getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CipherUtil getInstance()

encrypt

public java.lang.String encrypt(java.lang.String str)
Takes a single String as an argument and returns an Encrypted version of that String.

Parameters:
str - String to be encrypted
Returns:
String Encrypted version of the provided String

decrypt

public java.lang.String decrypt(java.lang.String str)
Takes a encrypted String as an argument, decrypts and returns the decrypted String.

Parameters:
str - Encrypted String to be decrypted
Returns:
String Decrypted version of the provided String

createErrorMessage

public java.lang.String createErrorMessage(java.lang.String operation,
                                           java.lang.String str,
                                           byte[] dec,
                                           java.lang.Exception e)

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.