com.ca.jcs.crypto.legacy
Class LNDCrypt
java.lang.Object
com.ca.jcs.crypto.legacy.LNDCrypt
public class LNDCrypt
- extends Object
Implements legacy LND connector encryption/decryption services
Java variant of encryption/decryption methods from admin\common\libraries\SATools\SATools.c
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALG_NAME
public static final String ALG_NAME
- See Also:
- Constant Field Values
LNDCrypt
public LNDCrypt()
encrypt_hex
public static String encrypt_hex(char key,
byte[] input)
- Encrypt buffer using LND legacy encryption method
- Parameters:
key - Not usedinput - Input buffer to be encrypted
- Returns:
- String containing encrypted data output as hex
decrypt_hex
public static String decrypt_hex(char key,
byte[] input)
- Decrypt hex buffer using LND encryption method.
- Parameters:
key - Not usedinput - Input buffer
- Returns:
- String containing original plaintext used during encryption
encrypt
public static String encrypt(String input)
decrypt
public static String decrypt(String input)
main
public static void main(String[] args)
Created 2011-07-14 13:27 EST