org.ztemplates.web.request.impl
Class ZEncryptionServiceImpl

java.lang.Object
  extended by org.ztemplates.web.request.impl.ZEncryptionServiceImpl
All Implemented Interfaces:
ZIEncryptionService, ZIService

public class ZEncryptionServiceImpl
extends Object
implements ZIEncryptionService


Field Summary
 
Fields inherited from interface org.ztemplates.web.ZIEncryptionService
SPRING_NAME
 
Constructor Summary
ZEncryptionServiceImpl(String password, byte[] salt)
           
ZEncryptionServiceImpl(String password, String saltHex)
           
 
Method Summary
 String decrypt(String s)
          encrypts the string and its md5hash
 String encrypt(String s)
          encrypts the string and its md5hash
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZEncryptionServiceImpl

public ZEncryptionServiceImpl(String password,
                              byte[] salt)

ZEncryptionServiceImpl

public ZEncryptionServiceImpl(String password,
                              String saltHex)
Method Detail

decrypt

public String decrypt(String s)
               throws Exception
Description copied from interface: ZIEncryptionService
encrypts the string and its md5hash

Specified by:
decrypt in interface ZIEncryptionService
Returns:
Throws:
Exception

encrypt

public String encrypt(String s)
               throws Exception
Description copied from interface: ZIEncryptionService
encrypts the string and its md5hash

Specified by:
encrypt in interface ZIEncryptionService
Returns:
Throws:
Exception


Copyright © 2011. All Rights Reserved.