Re: Matching pgp_sym_encrypt() and gpg2 output

2019-08-27 Thread Bruce Momjian
On Tue, Aug 27, 2019 at 02:05:28PM -0400, Jeff Janes wrote: > On Tue, Aug 27, 2019 at 1:33 PM Bruce Momjian wrote: > > I am trying to generate output from the command-line program gpg2 that > matches the output of pgp_sym_encrypt().  gpg2 outputs: > >         $ echo 'my access passwo

Re: Matching pgp_sym_encrypt() and gpg2 output

2019-08-27 Thread Jeff Janes
On Tue, Aug 27, 2019 at 1:33 PM Bruce Momjian wrote: > I am trying to generate output from the command-line program gpg2 that > matches the output of pgp_sym_encrypt(). gpg2 outputs: > > $ echo 'my access password' | tr -d '\n' | gpg2 --symmetric --batch > > --cipher-algo AES256

Matching pgp_sym_encrypt() and gpg2 output

2019-08-27 Thread Bruce Momjian
I am trying to generate output from the command-line program gpg2 that matches the output of pgp_sym_encrypt(). gpg2 outputs: $ echo 'my access password' | tr -d '\n' | gpg2 --symmetric --batch > --cipher-algo AES256 --passphrase 'abc' | xxd -p | tr -d '\n' 8c0d0409030248