Method: Rex::Proto::Kerberos::CredentialCache::KeyBlock#encode

Defined in:
lib/rex/proto/kerberos/credential_cache/key_block.rb

#encodeString

Encodes the Rex::Proto::Kerberos::CredentialCache::KeyBlock into an String

Returns:

  • (String)

    encoded key



23
24
25
26
27
28
29
30
# File 'lib/rex/proto/kerberos/credential_cache/key_block.rb', line 23

def encode
  encoded = ''
  encoded << encode_key_type
  encoded << encode_e_type
  encoded << encode_key_value

  encoded
end