KeyPair.generateSymmetric constructor

KeyPair.generateSymmetric(
  1. int bitLength
)

Generates a random symmetric KeyPair with specified bit length

Implementation

factory KeyPair.generateSymmetric(int bitLength) =>
    KeyPair.symmetric(SymmetricKey.generate(bitLength));