Re: questions: no input file, and pascal programming

2009-05-03 Thread Philip
So far I have figured out that on windows if I enter the command gpg -eat -r [recipient key] I get a prompt on the console If I then type a message, followed by control-Z then gpg will encrypt the message and dump the pgp text to the screen, or to a file if I used the -o [filename] option. Howe

Re: questions: no input file, and pascal programming

2009-05-03 Thread Brad Rogers
On Sun, 03 May 2009 10:22:49 +0100 Philip wrote: Hello Philip, > Does anyone know the official, correct console way to get pgp to > terminate and output the encrypted text from console? > I'm amazed that it just doesn't seem to be documented anywhere. Through trial and error, I found D works.

Re: questions: no input file, and pascal programming

2009-05-03 Thread Philipp Schafft
reflum, On Sun, 2009-05-03 at 10:22 +0100, Philip wrote: > So far I have figured out that on windows if I enter the command > gpg -eat -r [recipient key] > > I get a prompt on the console > If I then type a message, followed by control-Z > then gpg will encrypt the message and dump the pgp text

Re: New results against SHA-1

2009-05-03 Thread Martin Ă…gren
2009/5/1 Atom Smasher : > On Thu, 30 Apr 2009, David Shaw wrote: > >> http://eurocrypt2009rump.cr.yp.to/837a0a8086fa6ca714249409ddfae43d.pdf >> >> There is not much hard information yet, but the two big quotes are "SHA-1 >> collisions now 2^52" and "Practical collisions are within resources of a >>

Re: Use other hash than SHA-1

2009-05-03 Thread Simon Ruderich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, May 02, 2009 at 09:45:11AM -0400, David Shaw wrote: > On May 2, 2009, at 6:25 AM, Simon Ruderich wrote: > > The short answer is that you can only use a 160-bit hash with your > default DSA key. That means SHA-1 or RIPEMD/160. There is a featu

Re: questions: no input file, and pascal programming

2009-05-03 Thread Philip
I spent a little time coding in windows today (using lazarus). I have come to the conclusion that you can pipe stuff to gpg from inside dos window, but that if you try to pipe stuff directly from the pascal program it fails. I actually got my program to work by piping to cmd.exe with "echo Mary

Re: questions: no input file, and pascal programming

2009-05-03 Thread James P. Howard, II
Under DOS, redirecting from the standard output of A to the standard input of B meant the contents were stored in a temporary file somewhere, due to DOS's inability to multitask. It's worth checking to be sure Windows still doesn't do that when running those at the command line. James On Sun May

Re: questions: no input file, and pascal programming

2009-05-03 Thread Philip
Hmm, that would spoil things. reading this http://www.velocityreviews.com/forums/t365339-p-write-eof-without-closing.html the opinion there is that sending control-Z is just a signal from the keyboard to the shell which the shell uses to cut the flow to the application listening on stdin, it do

Re: Use other hash than SHA-1

2009-05-03 Thread David Shaw
On May 3, 2009, at 8:17 AM, Simon Ruderich wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, May 02, 2009 at 09:45:11AM -0400, David Shaw wrote: On May 2, 2009, at 6:25 AM, Simon Ruderich wrote: The short answer is that you can only use a 160-bit hash with your default DSA key. Th