home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / crypt / 5069 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.2 KB

  1. Path: sparky!uunet!nntp1.radiomail.net!csl.sri.com!boucher
  2. From: boucher@csl.sri.com (Peter K. Boucher)
  3. Newsgroups: sci.crypt
  4. Subject: ripr - sh script to pipe ripem-encrypted files to in elm
  5. Date: 19 Nov 1992 21:49:15 GMT
  6. Organization: Computer Science Lab, SRI International
  7. Lines: 30
  8. Distribution: world
  9. Message-ID: <1eh24rINN6bs@roche.csl.sri.com>
  10. NNTP-Posting-Host: affirmed.csl.sri.com
  11.  
  12.  
  13. ------------- clip clip -----------------------
  14. #!/bin/sh
  15. # ripr [output_plaintext_file_name] < encrypted_file_name
  16. # Decrypts and saves a RIPEM-encrypted file (from stdin) - pipe to this from ELM.
  17. # Edit the following variables to reflect your situation before using this script.
  18. ripem="$HOME/bin/src/ripem/main/ripem"
  19. pubkeys="$HOME/bin/src/ripem/main/pubkey.ripem"
  20. seckeys="$HOME/bin/src/ripem/main/seckey.ripem"
  21. user_id='boucher@csl.sri.com'
  22. tmp_crp="$HOME/bin/r_${$}.crp"
  23. if [ -n "$1" ]
  24. then
  25.     tmp_crp="$1"
  26. fi
  27. if $ripem -d -u $user_id -p $pubkeys -s $seckeys > $tmp_crp
  28. then
  29.     echo "Plaintext saved in $tmp_crp"
  30. else
  31.     echo "$ripem -d -u $user_id -p $pubkeys -s $seckeys > $tmp_crp"
  32.     echo "RIPEM failed: can not decrypt file"
  33. fi
  34. sleep 3
  35. ------------- clip clip -----------------------
  36.  
  37.  
  38. -- 
  39. Peter K. Boucher
  40. --
  41. RIPEM public key available upon request.
  42.