public class UnixCrypt extends Object implements CryptoAlgorithm
Constructor and Description |
---|
UnixCrypt()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
encrypt(String value)
Encrypt the supplied string with the requested cipher
|
void |
setCipher(String cipher)
This class never uses anything but UnixCrypt, so it is just a dummy (Fixme:
Should we throw an exception if something is requested that we don't support?
|
void |
setSeed(String seed)
Setting the seed for the UnixCrypt algorithm.
|
public UnixCrypt()
public void setCipher(String cipher)
setCipher
in interface CryptoAlgorithm
cipher
- Cipher (ignored)public void setSeed(String seed)
setSeed
in interface CryptoAlgorithm
seed
- The seed value to use.public String encrypt(String value) throws Exception
encrypt
in interface CryptoAlgorithm
value
- The value to be encryptedException
- An Exception of the underlying implementation.Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.