Class NumberUtils


  • final class NumberUtils
    extends java.lang.Object
    Utils for processing numbers in encryptors. Intended only for internal use within jasypt.
    Since:
    1.2
    • Constructor Detail

      • NumberUtils

        private NumberUtils()
    • Method Detail

      • byteArrayFromInt

        static byte[] byteArrayFromInt​(int number)
      • intFromByteArray

        static int intFromByteArray​(byte[] byteArray)
      • processBigIntegerEncryptedByteArray

        static byte[] processBigIntegerEncryptedByteArray​(byte[] byteArray,
                                                          int signum)
      • maxSafeSizeInBytes

        private static long maxSafeSizeInBytes()