List of usage examples for org.bouncycastle.crypto CipherKeyGenerator CipherKeyGenerator
CipherKeyGenerator
From source file:org.xwiki.crypto.internal.symmetric.generator.DefaultKeyGenerator.java
License:Open Source License
protected CipherKeyGenerator getKeyGenerator() { return new CipherKeyGenerator(); }
From source file:ovh.tgrhavoc.aibot.protocol.EncryptionUtil.java
License:Open Source License
public static SecretKey generateSecretKey() { CipherKeyGenerator generator = new CipherKeyGenerator(); generator.init(new KeyGenerationParameters(new SecureRandom(), 128)); return new SecretKeySpec(generator.generateKey(), "AES"); }