| java.lang.Object org.apache.turbine.services.crypto.provider.OldJavaCrypt
OldJavaCrypt | public class OldJavaCrypt implements CryptoAlgorithm(Code) | | This is the Message Digest Implementation of Turbine 2.1. It does
not pad the Base64 encryption of the Message Digests correctly but
truncates after 20 chars. This leads to interoperability problems
if you want to use e.g. database columns between two languages.
If you upgrade an application from Turbine 2.1 and have already used
the Security Service with encrypted passwords and no way to rebuild
your databases, use this provider. It is bug-compatible.
DO NOT USE THIS PROVIDER FOR ANY NEW APPLICATION!
Nevertheless it can be used as the default crypto algorithm .
author: Henning P. Schmiedehausen version: $Id: OldJavaCrypt.java 534527 2007-05-02 16:10:59Z tv $ |
DEFAULT_CIPHER | final public static String DEFAULT_CIPHER(Code) | | The default cipher
|
OldJavaCrypt | public OldJavaCrypt()(Code) | | C'tor
|
encrypt | public String encrypt(String value) throws Exception(Code) | | Encrypt the supplied string with the requested cipher
Parameters: value - The value to be encrypted The encrypted value throws: Exception - An Exception of the underlying implementation. |
setCipher | public void setCipher(String cipher)(Code) | | Setting the actual cipher requested. If not
called, then the default cipher (SHA) is used.
This will never throw an error even if there is no
provider for this cipher. The error will be thrown
by encrypt() (Fixme?)
Parameters: cipher - The cipher to use. |
setSeed | public void setSeed(String seed)(Code) | | This class never uses a seed, so this is
just a dummy.
Parameters: seed - Seed (ignored) |
|
|