Ruby shell scripts encoding

Top  Previous  Next

RubyEncoder keeps the first line of the script unchanged if it begins with a #! UNIX shell script prefix (e.g. #!/bin/ruby). This lets protected scripts run from the shell or as CGI scripts. The first line of the script will not be encoded but the whole script including this line will still be protected with a checksum and so remains protected from unauthorized modifications.