Method for generating key for \Phalcon\Crypt

Suggest method which you using for generating key ?

For example using \Phalcon\Security\Random (and how exactly)

What do you mean? The cipher? Or the Hash algorithm?

I mean $key for $crypt->encrypt($text, $key);

from here https://docs.phalcon.io/en/3.4/crypt#basic-usage