generate static method
Generate a new symmetric key for the specified algorithm.
Creates a cryptographically secure random symmetric key.
Returns null if the algorithm is unsupported.
Implementation
static SymmetricKey? generate(String algorithm) {
final helper = sharedCryptoExtensions.symmetricHelper;
return helper!.generateSymmetricKey(algorithm);
}