public interface BigDecimalEncryptor
Common interface for all Encryptors which receive a BigDecimal (arbitrary precision) message and return a BigDecimal 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.
Modifier and Type | Method and Description |
---|---|
BigDecimal |
decrypt(BigDecimal encryptedMessage)
Decrypt an encrypted message
|
BigDecimal |
encrypt(BigDecimal message)
Encrypt the input message
|
BigDecimal encrypt(BigDecimal message)
message
- the message to be encryptedBigDecimal decrypt(BigDecimal encryptedMessage)
encryptedMessage
- the encrypted message to be decryptedCopyright © 2019 JBoss by Red Hat. All rights reserved.