java.security包下的算法默认是带有OAEP的padding的,如果想要使用nopadding,需要引入额外的provider,比如bouncycastle
Security
.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Cipher.getInstance("RSA/NONE/NoPadding", &qu[......]
Java的RSA实现nopadding
1 Reply