Class: OpenPGP::S2K::Simple

Inherits:
OpenPGP::S2K show all
Defined in:
lib/openpgp/s2k.rb

Overview

Constant Summary collapse

IDENTIFIER =
0x00

Constants inherited from OpenPGP::S2K

DEFAULT

Instance Attribute Summary

Attributes inherited from OpenPGP::S2K

#algorithm, #passphrase

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OpenPGP::S2K

#digest, #digest_input_with_preload, identifier, #identifier, #initialize, #to_hash, #to_key, #to_s, #write

Constructor Details

This class inherits a constructor from OpenPGP::S2K

Class Method Details

.parse(input) ⇒ Object



84
85
86
# File 'lib/openpgp/s2k.rb', line 84

def self.parse(input)
  self.new(nil, :algorithm => input.read_byte)
end

Instance Method Details

#digest_inputObject



88
89
90
# File 'lib/openpgp/s2k.rb', line 88

def digest_input
  passphrase
end