public class ZServerPasswordEncrypter
extends java.lang.Object
Class exists in two projects/packages:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CODEPAGE
Code page used for encryption.
|
| Constructor and Description |
|---|
ZServerPasswordEncrypter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decrypt(java.lang.String pEncrypted)
Decrypts a String that has been encrypted by
encrypt(String) or
the zServer |
static java.lang.String |
decrypt(java.lang.String pEncrypted,
java.lang.String pCustomKey)
Decrypts an encrypted String using a custom key.
|
static java.lang.String |
encrypt(java.lang.String pMsg)
Encrypts a String with DES (ECB).
|
static java.lang.String |
encrypt(java.lang.String pMsg,
byte[] pKey)
Encrypts a String with DES (ECB) by using the given key.
|
public static final java.lang.String CODEPAGE
public static java.lang.String encrypt(java.lang.String pMsg)
throws java.security.GeneralSecurityException
pMsg - The message to encryptjava.security.GeneralSecurityException - security exception with the used Cipherpublic static java.lang.String encrypt(java.lang.String pMsg,
byte[] pKey)
throws java.security.GeneralSecurityException
pMsg - The message to encryptpKey - the key used for encryptionjava.security.GeneralSecurityException - security exception with the used Cipherpublic static java.lang.String decrypt(java.lang.String pEncrypted)
throws java.security.GeneralSecurityException
encrypt(String) or
the zServerpEncrypted - the encrypted Stringjava.security.GeneralSecurityException - security exception with the used Cipherpublic static java.lang.String decrypt(java.lang.String pEncrypted,
java.lang.String pCustomKey)
throws java.security.GeneralSecurityException
pEncrypted - the encrypted StringpCustomKey - key to be used for decryptionjava.security.GeneralSecurityException - security exception with the used CipherCopyright © 2015 Micro Focus GmbH. All rights reserved.