public class KeyEncrypter extends VistaLinkEncrypter
| Modifier and Type | Field and Description |
|---|---|
protected int |
ks |
algorithmName, encodingFormat, key, logger| Constructor and Description |
|---|
KeyEncrypter() |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String s)
Decrypts a string using the specified encoding algorithm and encoding.
|
String |
encrypt(String s)
Encrypts a string using the specified encoding algorithm and encoding.
|
protected SecretKey |
generateKey() |
protected Cipher |
getCipher(int opmode) |
SecretKey |
getKey()
Returns a Key instance, used for encryption/decryption process
|
protected KeyGenerator |
getKeyGenerator() |
protected void |
handleException(Exception e,
String message) |
void |
setKey(SecretKey key) |
protected SecretKey generateKey()
protected KeyGenerator getKeyGenerator() throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionprotected Cipher getCipher(int opmode)
public String encrypt(String s)
VistaLinkEncrypterencrypt in class VistaLinkEncrypters - The String to encode.public String decrypt(String s)
VistaLinkEncrypterdecrypt in class VistaLinkEncrypters - The String to encode.public SecretKey getKey()
VistaLinkEncryptergetKey in class VistaLinkEncrypterpublic void setKey(SecretKey key)
Copyright © 2026. All rights reserved.