fedora.server.journal.helpers
Class PasswordCipher

java.lang.Object
  extended by fedora.server.journal.helpers.PasswordCipher

public class PasswordCipher
extends java.lang.Object

Title: PasswordCipher.java

Description: Encipher the password so we aren't writing it to the file in clear.

The encipher method does not allow options for cipher type. It should always use the latest and greatest. The decipher method accepts different cipher types so it can be used to read older Journal Files. Known types include:

Version:
$Id: PasswordCipher.java 5025 2006-09-01 22:08:17 +0000 (Fri, 01 Sep 2006) cwilper $
Author:
jblake@cs.cornell.edu

Constructor Summary
PasswordCipher()
           
 
Method Summary
static java.lang.String decipher(java.lang.String key, java.lang.String cipherText, java.lang.String cipherType)
          Use the key to produce a clear text String from the cipherText.
static java.lang.String encipher(java.lang.String key, java.lang.String clearText)
          Use the key to produce a ciphered String from the clearText.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordCipher

public PasswordCipher()
Method Detail

encipher

public static java.lang.String encipher(java.lang.String key,
                                        java.lang.String clearText)
Use the key to produce a ciphered String from the clearText.


decipher

public static java.lang.String decipher(java.lang.String key,
                                        java.lang.String cipherText,
                                        java.lang.String cipherType)
Use the key to produce a clear text String from the cipherText. If no key is provided, or if no type is specified, just return the text as is.