Ruby
// Generate a Tempfile
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 \"\" --encrypt-file #{tmpFil.path} " exec cmdline