randomKey static method

String randomKey({
  1. int bytes = 32,
})

New random 32-byte key as base64, ready for seal(). final String key = UEncryption.randomKey();

Implementation

static String randomKey({int bytes = 32}) => base64.encode(_randomBytes(bytes));