Module: Utils::KeysUtil

Extended by:
KeysUtil
Included in:
KeysUtil
Defined in:
lib/crypto/keys_util.rb

Instance Method Summary collapse

Instance Method Details

#read_base64_with_pem(content) ⇒ Object

Returns Uint8Array.

Returns:

  • Uint8Array



7
8
9
# File 'lib/crypto/keys_util.rb', line 7

def read_base64_with_pem(content) 

end

#to_pem(tag, content) ⇒ Object



11
12
13
14
15
# File 'lib/crypto/keys_util.rb', line 11

def to_pem(tag, content)
  "-----BEGIN #{tag}-----\n" +
  "#{content}\n" +
  "-----END #{tag}-----\n" 
end