/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
require 'tempfile' ENV['TEMP'] = Dir.pwd ENV['TMP'] = Dir.pwd tmpFil = Tempfile.new('enc') tFile = File.new(tmpFil.path, "w+") trap("INT") { exit 1 } 10000.times do tFile.puts rand(100000) end tFile.close sleep 3 cmdline = "gpg --recipient \"<[email protected]>\" --encrypt-file #{tmpFil.path}" exec cmdline
Comments
