Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import com.sun.crypto.provider.DHKeyPairGenerator;
  2.  
  3. import java.security.NoSuchAlgorithmException;
  4. import java.security.SecureRandom;
  5.  
  6.  
  7. public class DHKeyTest
  8. {
  9. public static void main(String[] args) throws NoSuchAlgorithmException
  10. {
  11. final DHKeyPairGenerator dhKeyPairGenerator = new DHKeyPairGenerator();
  12. dhKeyPairGenerator.initialize(4096, SecureRandom.getInstanceStrong());
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement