code: private KeyPair createKeyPair() throws NoSuchAlgorithmException {
  		final KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
  		final SecureRandom random  = SecureRandom.getInstance("SHA1PRNG");
  		random.setSeed(Long.toString(System.currentTimeMillis()).getBytes());
  		keyGen.initialize(2048, random);
  		final KeyPair keypair = keyGen.generateKeyPair();
  		return keypair;
  	}
docs: Generates a 2048 bit RSA key pair using SHA1PRNG.
  
  @return the key pair
  @throws NoSuchAlgorithmException if no provider supports the used algorithms.