ENCRYPT A FILE USING A PUBLIC SSH KEY
Generate the symmetric key (32 bytes gives us the 256 bit key):
$ openssl rand 32 -out secret.key
You should only use this key this one time, by the way. If you send something to the recipient at another time, don’t reuse it.