Sha256: e1d2ff6e1b63509a925f31537d540b69629c34db1e1f0a9156c3e8a9ed53d20a
Contents?: true
Size: 329 Bytes
Versions: 25
Compression:
Stored size: 329 Bytes
Contents
require 'openssl' module SoarAuthenticationToken class KeypairGenerator def generate private_key = OpenSSL::PKey::EC.new 'secp521r1' private_key.generate_key public_key = OpenSSL::PKey::EC.new private_key public_key.private_key = nil [private_key.to_pem, public_key.to_pem] end end end
Version data entries
25 entries across 25 versions & 1 rubygems