Sha256: 536273323c145bfd122ad217930fc5b55ea217b038fbc3ebfc83d77b532bf1b4
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
#!/usr/bin/ruby require 'fileutils' require 'gpgme' FileUtils.rm_rf("#{Dir.home}/.config/mpw") FileUtils.rm_rf("#{Dir.home}/.gnupg") param = '' param << '<GnupgKeyParms format="internal">' + "\n" param << "Key-Type: RSA\n" param << "Key-Length: 512\n" param << "Subkey-Type: ELG-E\n" param << "Subkey-Length: 512\n" param << "Name-Real: test\n" param << "Name-Comment: test\n" param << "Name-Email: test2@example.com\n" param << "Expire-Date: 0\n" param << "Passphrase: password\n" param << "</GnupgKeyParms>\n" ctx = GPGME::Ctx.new ctx.genkey(param, nil, nil)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mpw-4.2.2 | test/init.rb |
mpw-4.2.1 | test/init.rb |
mpw-4.2.0 | test/init.rb |