1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/factories/rsa_public_keys.rb

9 lines
183 B
Ruby
Raw Normal View History

2019-09-10 08:08:23 -04:00
# frozen_string_literal: true
FactoryBot.define do
factory :rsa_public_key do
pem { OpenSSL::PKey::RSA.new(bits).public_key.to_pem }
bits { [2048, 4096].sample }
end
end