module Ronin::Support::Encoding::UUEncoding
Contains methods for encoding/decoding UUEncoded data.
## Core-Ext Methods
-
{String#uu_encode}
-
{String#uu_decode}
@api public
Public Class Methods
Source
# File lib/ronin/support/encoding/uuencoding.rb, line 69 def self.decode(data) data.unpack1('u') end
Decodes the UUEncoded String
.
@param [String] data
The data to uudecode.
@return [String]
The decoded String.
@example
Encoding::UUEncoding.encode("+:&5L;&\\@=V]R;&0`\n") # => "hello world"
Source
# File lib/ronin/support/encoding/uuencoding.rb, line 50 def self.encode(data) [data].pack('u') end
UUEncodes the String
.
@param [String] data
The data to uuencode.
@return [String]
The UU encoded String.
@example
Encoding::UUEncoding.encode("hello world") # => "+:&5L;&\\@=V]R;&0`\n"