public String generateKey() throws Exception {
  return RandomStringUtils.random(KEY_LENGTH,0,charsForKey.length - 1,true,true,charsForKey,SecureRandom.getInstance(SecurityUtil.getSecuredRandomAlgorithm()));
}

public String generateKey ( ) throws Exception { return RandomStringUtils . random ( KEY_LENGTH , 0 , charsForKey . length - 1 , true , true , charsForKey , SecureRandom . getInstance ( SecurityUtil . getSecuredRandomAlgorithm ( ) ) ) ; }
generate a 64 - byte key for ipsec
