Module: Utils::KeysUtil
Instance Method Summary collapse
Instance Method Details
#read_base64_with_pem(content) ⇒ Object
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 |