package com.sec.ax.restful.crypt.aes;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import com.sec.ax.restful.crypt.AxCryptException;

import junit.framework.TestCase;

/**
 *
 * @author heesik.jeon
 *
 */

public class AxCryptTest extends TestCase {
	
	private Logger logger = Logger.getLogger(this.getClass());
	
	public AxCryptTest() {
		logger.setLevel(Level.DEBUG);
	}
	
	public void testDecrypt() {
		
		try {
			
			String encrypted = "yhAGrcZInqeKNvMiLiBugeIT/Sb/4ldr8YMLaL0OrRmvLc/pHJ8YZTda0R63HRyC";
			String decrypted = AxCrypt.decrypt("Vvb7oruYPkOHrEwoTVnXtw==", encrypted);
			
			logger.debug(encrypted);
			logger.debug(decrypted);
			
		} catch (AxCryptException e) {
			fail(e.toString());
		}
		
	}

}

Add TestCase to decrypt text
Add TestCase to decrypt text