Class: OpenPGP::S2K::Simple

Inherits:
  • Object
show all
Defined in:
lib/openpgp/s2k.rb

Overview

See Also:

Constant Summary

IDENTIFIER =
0x00

Constants inherited from

DEFAULT

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from

#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

+ (S2K) parse(input)

Parameters:

Returns:



118
119
120
# File 'lib/openpgp/s2k.rb', line 118

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

Instance Method Details

- (String) digest_input

Returns:

  • (String)


124
125
126
# File 'lib/openpgp/s2k.rb', line 124

def digest_input
  passphrase
end