gpg to decrypt a file giving the passphrase - PGP

This is a discussion on gpg to decrypt a file giving the passphrase - PGP ; I need to schedule a process to decrypt a file .pgp using gpg if I type >gpg --passphrase=12345.... --output d:\test.txt --decrypt D:\file.pgp I get >gpg: failed to translate osfhandle 7FFFFFFF What can I type to decrypt the file successfully ? ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: gpg to decrypt a file giving the passphrase

  1. gpg to decrypt a file giving the passphrase

    I need to schedule a process to decrypt a file .pgp using gpg

    if I type
    >gpg --passphrase=12345.... --output d:\test.txt --decrypt D:\file.pgp


    I get
    >gpg: failed to translate osfhandle 7FFFFFFF


    What can I type to decrypt the file successfully ?


    PS.
    If I type
    >gpg --output d:\test.txt --decrypt D:\file.pgp

    I type the passphrase and the file is decrypted fine

    I would like to automate this procedure
    Please help me


    Thank you

    LZ

  2. Re: gpg to decrypt a file giving the passphrase

    On 21 Jan 2004, luther wrote:
    >I need to schedule a process to decrypt a file .pgp using gpg
    >
    >if I type
    >>gpg --passphrase=12345.... --output d:\test.txt --decrypt D:\file.pgp

    >
    >I get
    >>gpg: failed to translate osfhandle 7FFFFFFF

    >
    >What can I type to decrypt the file successfully ?
    >
    >
    >PS.
    >If I type
    >>gpg --output d:\test.txt --decrypt D:\file.pgp

    >I type the passphrase and the file is decrypted fine
    >
    >I would like to automate this procedure
    >Please help me
    >
    >
    >Thank you
    >
    >LZ



    play . . .


    GnuPG

    echo 12345|gpg --output file.pgp --batch --passphrase-fd 0 --symmetric
    test.txt
    echo 12345|gpg --output test.txt --batch --passphrase-fd 0 --decrypt
    file.pgp


    GnuPG Nullify Distribution

    gpg --output file.pgp --passphrase 12345 --symmetric test.txt
    gpg --output test.txt --passphrase 12345 --decrypt file.pgp






  3. Re: gpg to decrypt a file giving the passphrase

    starwars wrote in message news:...
    > On 21 Jan 2004, luther wrote:
    > >I need to schedule a process to decrypt a file .pgp using gpg
    > >
    > >if I type
    > >>gpg --passphrase=12345.... --output d:\test.txt --decrypt D:\file.pgp

    > >
    > >I get
    > >>gpg: failed to translate osfhandle 7FFFFFFF

    > >
    > >What can I type to decrypt the file successfully ?
    > >
    > >
    > >PS.
    > >If I type
    > >>gpg --output d:\test.txt --decrypt D:\file.pgp

    > >I type the passphrase and the file is decrypted fine
    > >
    > >I would like to automate this procedure
    > >Please help me
    > >
    > >
    > >Thank you
    > >
    > >LZ

    >
    >
    > play . . .
    >
    >
    > GnuPG
    >
    > echo 12345|gpg --output file.pgp --batch --passphrase-fd 0 --symmetric
    > test.txt
    > echo 12345|gpg --output test.txt --batch --passphrase-fd 0 --decrypt
    > file.pgp
    >
    >
    > GnuPG Nullify Distribution
    >
    > gpg --output file.pgp --passphrase 12345 --symmetric test.txt
    > gpg --output test.txt --passphrase 12345 --decrypt file.pgp




    Thank you very much
    I solved with

    echo 12345|gpg --output test.txt --batch --passphrase-fd 0 --decrypt
    file.pgp

    bye

    LZ

+ Reply to Thread