Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jasypt.encryption
Interface BigDecimalEncryptor

All Known Subinterfaces:
  PBEBigDecimalCleanablePasswordEncryptor, PBEBigDecimalEncryptor

All Known Implementing Classes:
  PooledPBEBigDecimalEncryptor, StandardPBEBigDecimalEncryptor

    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.

Since:
  1.2
Author:
  Daniel Fernández

Method Summary
`java.math.BigDecimal` | `decrypt(java.math.BigDecimal encryptedMessage)` Decrypt an encrypted message
`java.math.BigDecimal` | `encrypt(java.math.BigDecimal message)` Encrypt the input message

Method Detail

### encrypt

    java.math.BigDecimal encrypt(java.math.BigDecimal message)

  Encrypt the input message

  Parameters:
    `message` - the message to be encrypted
  Returns:
    the result of encryption

### decrypt

    java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)

  Decrypt an encrypted message

  Parameters:
    `encryptedMessage` - the encrypted message to be decrypted
  Returns:
    the result of decryption

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014 The JASYPT team. All Rights Reserved.