Why am I getting 'BadPaddingException' when decrypting?

后端 未结 2 964
清酒与你
清酒与你 2020-12-30 18:21

Here are my encryption settings:

public static String encryptionAlgorithm = \"AES\";
public static short encryptionBitCount = 256;
public static int encrypti         


        
2条回答
  •  天涯浪人
    2020-12-30 18:49

    BadPaddingException Error in enryption/decryption

    I encountered such an error, but this helped me

    http://themasterofmagik.wordpress.com/2014/03/19/simple-aes-encryption-and-decryption-in-java-part1/

    hope it helps you too.

提交回复
热议问题