module Gpgr::Encrypt

Encapsulates all the functionality related to encrypting a file. All of the real work is done by the class GpgGileForEncryption.

Public Class Methods

file(path, options = {}) click to toggle source

Takes the path to the file you want to encrypt; and returns a GpgFileForEncryption object for you to modify with the people (e-mail addresses) you want to encrypt this file for. Optionally you can specify where you want the encrypted file to be written, by setting :to => some_path. Will default to wherever the current file is, with the extension 'pgp' appended.

# File lib/gpgr.rb, line 55
def self.file(path, options = {})
  default_options = { :to => "#{path}.pgp" }.merge(options)
  GpgFileForEncryption.new(path, default_options[:to])
end