Skip to content

Batch mode - binary key in the file? #5

@Jacekalex

Description

@Jacekalex

Can you add to the GNUPG :: Interface module for the
--batch --no-default-keyring --keyring '/where/is/key.bin'
parameters, would you like to use a key saved in a binary file?

They are talking about such an example of use:

echo "some super secret text" > /tmp/message.txt
gpg --batch --armor --trust-model always --no-default-keyring --keyring /etc/foo.pubkey.bin --recipient foo@bar.com --encrypt < /tmp/message.txt > /tmp/message.txt.pgp

Source:
https://www.zulius.com/how-to/send-encrypted-email-from-shell-scripts-cron/

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions