Initial commit

This commit is contained in:
Lakr Aream
2022-01-24 16:39:53 +08:00
committed by Lakr Aream
commit 00000000f4
9 changed files with 581 additions and 0 deletions

10
generate_keys.rb Normal file
View File

@@ -0,0 +1,10 @@
require 'openssl'
key_pair = OpenSSL::PKey::RSA.generate(2048)
File.open("license_key", "w") { |f| f.write(key_pair.to_pem) }
public_key = key_pair.public_key
File.open("license_key.pub", "w") { |f| f.write(public_key.to_pem) }
puts "Generated RSA key pairs, use generate_licenses.rb to generate licenses."
puts "Make your own customization to the code if needed."