Class Net::NTLM::EncodeUtil
In: lib/net/ntlm/encode_util.rb
Parent: Object

Methods

Public Class methods

Decode a UTF16 string to a ASCII string @param [String] str The string to convert

Decode a UTF16 string to a ASCII string @param [String] str The string to convert

Encodes a ASCII string to a UTF16 string @param [String] str The string to convert

Encodes a ASCII string to a UTF16 string @param [String] str The string to convert @note This implementation may seem stupid but the problem is that UTF16-LE and UTF-8 are incompatiable

  encodings. This library uses string contatination to build the packet bytes. The end result is that
  you can either marshal the encodings elsewhere of simply know that each time you call encode_utf16le
  the function will convert the string bytes to UTF-16LE and note the encoding as UTF-8 so that byte
  concatination works seamlessly.

Taggle the strings endianness between big/little and little/big @param [String] str The string to swap the endianness on

[Validate]