questions: no input file, and pascal programming
subs at christiantena.net
Sat May 2 14:28:31 CEST 2009
I got it to work in Windows.
With a default install of gpg4win gpg is not in the path, but this
echo Mary had a little lamb|"c:\Program Files\GNU\GnuPG\gpg.exe" --yes
-eat -o test.txt.gpg -r [keyid]
I'm thinking that it might be easier for a pascal programmer to
interface with gpg on command line than to figure out how to compile
against gpgme c code, even if it isn't probably the right way to do it.
Hardeep Singh wrote:
> The same can be done in Windows.
> Visit http://blog.hardeep.name/computer/20080828/linux-shell-on-windows/
> this will give you the shell and the Echo commands that you need.
> Hardeep Singh
> On Sat, May 2, 2009 at 1:05 PM, Philip <subs at christiantena.net> wrote:
>> I found that if I just type "gpg" I get this
>> "gpg: Go ahead and type your message ..." which looks promising but I
>> can't find any documentation on how to use it.
>> Also this works in linux
>> "echo Mary had a little lamb|gpg --yes -eat -o test.txt.gpg -r [keyid]"
>> but I don't know how to do something similar in dos/windows
>> thanks, Philip
>> John Clizbe wrote:
>>> Philip wrote:
>>>> I have some questions about gpg
>>>> 1. using gpg command line, can I pass data to be encrypted to gpg that
>>>> isn't in a file? For example if I want to encrypt "Mary had a little
>>>> lamb" to a an asc file but I don't want to put that text onto the hard
>>>> drive unencrypted first.
>>> gpg will behave as a pipe or if given no input, quietly wait for you to
>>> type something in.
>>>> 2. is there something like gpgme that can be used easily for pascal
>>>> Personally I use freepascal and I just want to be able to select a key,
>>>> encrypt and decrypt from within my program.
>>>> If anyone knows of any opensource pascal programs that use gnupg it
>>>> would be appreciated.
>>> Pascal bindings should exist for the current gpgme, I've just not found
>>> I've worked with one pascal program that used gpgme bindings but it was
>>> code before gpgme API changed. I'd love to find updated bindings and
>>> save myself the effort of updating the old ones
>>> Gnupg-users mailing list
>>> Gnupg-users at gnupg.org
>> Gnupg-users mailing list
>> Gnupg-users at gnupg.org
More information about the Gnupg-users