RSA example that do not use NoPadding
- by Tom Brito
Where can I find a RSA encrypt example that does not use "NoPadding"?
--update
Better: how to make this code run correctly without throw the "too much data for RSA block" exception?
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import…