Module: Custom::NTLM::ClassMethods

Defined in:
lib/ruby_smb/ntlm/custom/ntlm.rb

Instance Method Summary collapse

Instance Method Details

#encode_utf16le(str) ⇒ Object



11
12
13
# File 'lib/ruby_smb/ntlm/custom/ntlm.rb', line 11

def encode_utf16le(str)
  str.dup.force_encoding('UTF-8').encode(Encoding::UTF_16LE, Encoding::UTF_8).force_encoding('ASCII-8BIT')
end