railo.runtime.security
Class SerialDecoder

java.lang.Object
  extended by railo.runtime.security.SerialDecoder

public final class SerialDecoder
extends Object

support class for easy string encryption with the Blowfish algorithm, now in CBC mode with a SHA-1 key setup and correct padding


Constructor Summary
SerialDecoder(String sPassword)
          constructor to set up a string as the key (oversized password will be cut)
 
Method Summary
 String decrypt(String sCipherText)
          decrypts a hexbin string (handling is case sensitive)
 void destroy()
          destroys (clears) the encryption engine, after that the instance is not valid anymore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialDecoder

public SerialDecoder(String sPassword)
constructor to set up a string as the key (oversized password will be cut)

Parameters:
sPassword - the password (treated as a real unicode array)
Method Detail

decrypt

public String decrypt(String sCipherText)
decrypts a hexbin string (handling is case sensitive)

Parameters:
sCipherText - hexbin string to decrypt
Returns:
decrypted string (null equals an error)

destroy

public void destroy()
destroys (clears) the encryption engine, after that the instance is not valid anymore



Copyright © 2012 Railo