Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.sun.crypto.provider.DHKeyPairGenerator;
- import java.security.NoSuchAlgorithmException;
- import java.security.SecureRandom;
- public class DHKeyTest
- {
- public static void main(String[] args) throws NoSuchAlgorithmException
- {
- final DHKeyPairGenerator dhKeyPairGenerator = new DHKeyPairGenerator();
- dhKeyPairGenerator.initialize(4096, SecureRandom.getInstanceStrong());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement