我需要知道适用于Triple DES算法的填充模式是什么, AI_PKCS_PADDING是否适用于Triple DES的填充模式?
答案 0 :(得分:6)
Every implementation of the Java platform is required to support the following standard Cipher transformations with the keysizes in parentheses:
AES/CBC/NoPadding (128)
AES/CBC/PKCS5Padding (128)
AES/ECB/NoPadding (128)
AES/ECB/PKCS5Padding (128)
DES/CBC/NoPadding (56)
DES/CBC/PKCS5Padding (56)
DES/ECB/NoPadding (56)
DES/ECB/PKCS5Padding (56)
DESede/CBC/NoPadding (168)
DESede/CBC/PKCS5Padding (168)
DESede/ECB/NoPadding (168)
DESede/ECB/PKCS5Padding (168)
RSA/ECB/PKCS1Padding (1024, 2048)
RSA/ECB/OAEPWithSHA-1AndMGF1Padding (1024, 2048)
RSA/ECB/OAEPWithSHA-256AndMGF1Padding (1024, 2048)
因此它应该支持PKCS5Padding
答案 1 :(得分:1)
三重DES算法填充模式(...)我不知道应该使用哪种模式(...)
DES操作模式(三重DES基于DES):
什么是AES和DES以及DESede的尊重