Blowfish.
;;; -*-Scheme-*-
;;;
-;;; $Id: dosfile.scm,v 1.28 1999/08/09 03:25:51 cph Exp $
+;;; $Id: dosfile.scm,v 1.29 1999/08/09 18:19:15 cph Exp $
;;;
;;; Copyright (c) 1994-1999 Massachusetts Institute of Technology
;;;
(equal? "ky" (pathname-type pathname)))))
(define (read-encrypted-file pathname mark)
- (let ((password (prompt-for-password "Password: "))
+ (let ((password (prompt-for-password "Pass phrase"))
(type (pathname-type pathname)))
(message "Decrypting file " (->namestring pathname) "...")
(cond ((equal? "bf" type)
(lambda (input)
(call-with-output-mark mark
(lambda (output)
- (blowfish-encrypt-port input output password
+ (blowfish-encrypt-port input output (md5 password)
(read-blowfish-file-header input)
#f))))))
((or (equal? "ky" type) (equal? "KY" type))
(region-end region))))
(call-with-binary-output-file pathname
(lambda (output)
- (blowfish-encrypt-port input output password
+ (blowfish-encrypt-port input output (md5 password)
(write-blowfish-file-header output)
#t)))))
((or (equal? "ky" type) (equal? "KY" type))
;;; -*-Scheme-*-
;;;
-;;; $Id: filcom.scm,v 1.202 1999/08/09 03:25:20 cph Exp $
+;;; $Id: filcom.scm,v 1.203 1999/08/09 18:19:24 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology
;;;
(lambda (input)
(call-with-binary-output-file to
(lambda (output)
- (blowfish-encrypt-port input output password
+ (blowfish-encrypt-port input output (md5 password)
(write-blowfish-file-header output)
#t))))))
(delete-file from)))))
(string-append "File "
(->namestring to)
" already exists; overwrite")))
- (let ((password (prompt-for-password "Password")))
+ (let ((password (prompt-for-password "Pass phrase")))
(call-with-binary-input-file from
(lambda (input)
((if binary?
call-with-output-file)
to
(lambda (output)
- (blowfish-encrypt-port input output password
+ (blowfish-encrypt-port input output (md5 password)
(read-blowfish-file-header input)
#f)))))))))
\f
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.96 1999/08/09 03:26:14 cph Exp $
+;;; $Id: unix.scm,v 1.97 1999/08/09 18:19:19 cph Exp $
;;;
;;; Copyright (c) 1989-1999 Massachusetts Institute of Technology
;;;
'("bf" "ky" "KY"))
(define (read-encrypted-file pathname mark)
- (let ((password (prompt-for-password "Password: "))
+ (let ((password (prompt-for-password "Pass phrase"))
(type (pathname-type pathname)))
(message "Decrypting file " (->namestring pathname) "...")
(cond ((equal? "bf" type)
(lambda (input)
(call-with-output-mark mark
(lambda (output)
- (blowfish-encrypt-port input output password
+ (blowfish-encrypt-port input output (md5 password)
(read-blowfish-file-header input)
#f))))))
((or (equal? "ky" type) (equal? "KY" type))
(region-end region))))
(call-with-binary-output-file pathname
(lambda (output)
- (blowfish-encrypt-port input output password
+ (blowfish-encrypt-port input output (md5 password)
(write-blowfish-file-header output)
#t)))))
((or (equal? "ky" type) (equal? "KY" type))