Function: pgg-encrypt

pgg-encrypt is an interactive and byte-compiled function defined in pgg.el.gz.

Signature

(pgg-encrypt RCPTS &optional SIGN START END PASSPHRASE)

Documentation

Encrypt the current buffer for RCPTS.

If optional argument SIGN is non-nil, do a combined sign and encrypt.

If optional arguments START and END are specified, only encrypt within the region.

If optional PASSPHRASE is not specified, it will be obtained from the passphrase cache or user.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/pgg.el.gz
;;;###autoload
(defun pgg-encrypt (rcpts &optional sign start end passphrase)
  "Encrypt the current buffer for RCPTS.

If optional argument SIGN is non-nil, do a combined sign and encrypt.

If optional arguments START and END are specified, only encrypt within
the region.

If optional PASSPHRASE is not specified, it will be obtained from the
passphrase cache or user."
  (interactive (list (split-string (read-string "Recipients: ") "[ \t,]+")))
  (let* ((start (or start (point-min)))
	 (end (or end (point-max)))
	 (status (pgg-encrypt-region start end rcpts sign passphrase)))
    (when (called-interactively-p 'interactive)
      (pgg-display-output-buffer start end status))
    status))