Элементарно.Если про https://developer.mozilla.org/en-US/docs/Web/HTTP/... , то его ведь можно легко подделать в HTTP клиенте.
gem install warbler
). Also, have your JRuby application code in a directory (e.g., my_app
).warble.rb
filewarble.rb
. This file will contain the configuration for Warbler.warble.rb
file, add the following code:Warbler::Config.new do |config|
config.dirs = %w(lib)
config.includes = FileList["#{config.root}/vendor/**/*"]
config.excludes = FileList["#{config.root}/test/**/*"]
config.executable = 'my_app'
config.main_class = 'MyApp'
end
config.dirs = %w(lib)
: specifies the directories to include in the executable (in this case, lib
)config.includes = FileList["#{config.root}/vendor/**/*"]
: includes all files in the vendor
directory and its subdirectoriesconfig.excludes = FileList["#{config.root}/test/**/*"]
: excludes all files in the test
directory and its subdirectoriesconfig.executable = 'my_app'
: sets the name of the executable fileconfig.main_class = 'MyApp'
: specifies the main class to run when the executable is launchedwarble executable
my_app
(or the name you specified in config.executable
) in the current directory../my_app
warble.rb
file: config.platform = 'windows'
warble.rb
file: config.platform = 'linux'
warble.rb
file: config.jvm_version = '1.8'
config.includes
and config.excludes
settings accordinglyconfig.main_class
setting or add additional configuration options as neededЯ рассматриваю возможность создания сервера, который будет передавать весь код в зашифрованном виде.Это самая уязвимая часть и последствия перехвата исходного кода куда выше, чем попытка кражи скомпилированного байткода.