Example usage for org.bouncycastle.crypto CipherKeyGenerator CipherKeyGenerator

List of usage examples for org.bouncycastle.crypto CipherKeyGenerator CipherKeyGenerator

Introduction

In this page you can find the example usage for org.bouncycastle.crypto CipherKeyGenerator CipherKeyGenerator.

Prototype

CipherKeyGenerator

Source Link

Usage

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");
}