|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vs.ezlicrun.PkCrypt
Public key encryption class. For internal use only.
Constructor Summary | |
PkCrypt()
|
Method Summary | |
static java.lang.String |
decryptWithPrivateKey(java.lang.String password,
java.lang.String crypttext,
java.lang.String privateKey)
PRIVATE: FOR INTERNAL USE ONLY Decrypt specified encrypted text with a specified private key. |
static java.lang.String |
decryptWithPublicKey(java.lang.String crypttext,
java.lang.String publicKey)
Decrypt specified encrypted text with a specified public key. |
static java.lang.String |
encryptWithPrivateKey(java.lang.String password,
java.lang.String cleartext,
java.lang.String privateKey)
PRIVATE: FOR INTERNAL USE ONLY Encrypt specified text with a specified private key. |
static java.lang.String |
encryptWithPublicKey(java.lang.String cleartext,
java.lang.String publicKey)
Encrypt specified text with a specified public key. |
static java.lang.String[] |
makeKeyPair(java.lang.String pwd,
java.lang.String keySeed)
Create a private / public key pair based on a given seed value. |
static java.lang.String |
makePublicKey(java.lang.String keySeed)
Generate a public key for a given key seed value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PkCrypt()
Method Detail |
public static java.lang.String[] makeKeyPair(java.lang.String pwd, java.lang.String keySeed)
pwd
- password needed to use this APIkeySeed
- seed for key creation.
public static java.lang.String makePublicKey(java.lang.String keySeed)
keySeed
- seed for key creation.
public static java.lang.String encryptWithPublicKey(java.lang.String cleartext, java.lang.String publicKey)
cleartext
- the text to encryptpublicKey
- the public key to use for encryption
public static java.lang.String decryptWithPublicKey(java.lang.String crypttext, java.lang.String publicKey)
crypttext
- the encrypted text to decryptpublicKey
- the public key to use for decryption
public static java.lang.String encryptWithPrivateKey(java.lang.String password, java.lang.String cleartext, java.lang.String privateKey)
password
- password for using this APIcleartext
- the text to encryptprivateKey
- the private key to use for encryption
public static java.lang.String decryptWithPrivateKey(java.lang.String password, java.lang.String crypttext, java.lang.String privateKey)
password
- password for using this APIcrypttext
- the encrypted text to decryptprivateKey
- the private key to use for decryption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |