Module | Crypto |
In: |
lib/utils/crypto-key.rb
|
ELSE
module JRuby
module OpenSSL GEM_ONLY = false unless defined?(GEM_ONLY) end end if JRuby::OpenSSL::GEM_ONLY require 'jruby/openssl/gem' else module OpenSSL class OpenSSLError < StandardError; end # These require the gem %w[ ASN1 BN Cipher Config Netscape PKCS7 PKey Random SSL X509 ].each {|c| autoload c, "jruby/openssl/gem"} end require "jruby/openssl/builtin" end
end
VERSION | = | 1.0 |
# File lib/utils/crypto-key.rb, line 50 50: def self.aws_sign(secret, string) 51: Base64.encode64(self.sign(secret, string)).strip 52: end
# File lib/utils/crypto-key.rb, line 41 41: def self.create_keys(bits = 2048) 42: pk = OpenSSL::PKey::RSA.new(bits) 43: end