I know I can use gpg --symmetric to encrypt a file using a passphrase, but I also know that it does in two steps as explainded here:
gpg symmetric encryption creates a random symmetric key and encrypts that key using the passphrase along with a random salt. The random symmetric key is used to encrypt the file or message.
Is there a way to get rid of the passphrase and use the random symmetric key directly? How long is the random symmetric key being used?
I would like to get something like a command I can run for it to encrypt a file and output (on another file or stdout) the random key used.