|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BigIntegerEncryptor
Common interface for all Encryptors which receive a BigInteger (arbitrary precision) message and return a BigInteger result.
Important: The size of the result of encrypting a number, depending on the algorithm, may be much bigger (in bytes) than the size of the encrypted number itself. For example, encrypting a 4-byte integer can result in an encrypted 16-byte number. This can lead the user into problems if the encrypted values are to be stored and not enough room has been provided.
Method Summary | |
---|---|
BigInteger |
decrypt(BigInteger encryptedMessage)
Decrypt an encrypted message |
BigInteger |
encrypt(BigInteger message)
Encrypt the input message |
Method Detail |
---|
BigInteger encrypt(BigInteger message)
message
- the message to be encrypted
BigInteger decrypt(BigInteger encryptedMessage)
encryptedMessage
- the encrypted message to be decrypted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |