home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / crypt / 5068 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.3 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: rips - sh script for sending ripem messages
  5. Date: 19 Nov 1992 21:45:06 GMT
  6. Organization: Computer Science Lab, SRI International
  7. Lines: 37
  8. Distribution: world
  9. Message-ID: <1eh1t2INN6bs@roche.csl.sri.com>
  10. NNTP-Posting-Host: affirmed.csl.sri.com
  11.  
  12.  
  13. ----------------- clip clip --------------------------
  14. #!/bin/sh
  15. # rips filename recipient_user_id "subject matter"
  16. # Mails a RIPEM-encrypted file.
  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 "$3" ]
  24. then
  25.     if $ripem -e -r $2 -u $user_id -p $pubkeys -s $seckeys < $1 > $tmp_crp
  26.     then
  27.         if elm -s "${3}" $2 < $tmp_crp
  28.         then
  29.             echo "mail sent"
  30.         else
  31.             echo "elm -s ${3} $2 < $tmp_crp"
  32.             echo "ELM failed: mail not sent"
  33.         fi
  34.     else
  35.         echo "$ripem -e -r $2 -u $user_id -p $pubkeys -s $seckeys < $1 > $tmp_crp"
  36.         echo "RIPEM failed: mail not sent"
  37.     fi
  38.     rm -i $tmp_crp
  39. else
  40.     echo "Usage: $0 filename recipient_user_id subject"
  41. fi
  42. ----------------- clip clip --------------------------
  43.  
  44.  
  45. -- 
  46. Peter K. Boucher
  47. --
  48. RIPEM public key available upon request.
  49.