Skip to content

An implementation of lanman and nt md4 hash functions for use in Samba style smbpasswd entries

Notifications You must be signed in to change notification settings

stephenagreer/ruby-smbhash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-smbhash

Build Status Gem Version

Description

ruby-smbhash is a implementation of lanman and nt md4 hash functions for use in Samba style smbpasswd entries. It was stripped from ActiveSambaLDAP (http://asl.rubyforge.org/activesambaldap/)

Tested Ruby Versions

  • MRI 1.8.6
  • MRI 1.9.2
  • MRI 1.9.3
  • MRI 2.0.0
  • MRI 2.1.1

Usage

require 'smbhash'

Smbhash.lm_hash    "password"
# => "E52CAC67419A9A224A3B108F3FA6CB6D"

Smbhash.ntlm_hash  "password"
# => "8846F7EAEE8FB117AD06BDD830B7586C"

Smbhash.ntlmgen    "password"
# => ["E52CAC67419A9A224A3B108F3FA6CB6D", "8846F7EAEE8FB117AD06BDD830B7586C"]

Credits

  • ActiveSambaLDAP project for sharing the code
  • jon-mercer for porting it to ruby 1.9

About

An implementation of lanman and nt md4 hash functions for use in Samba style smbpasswd entries

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%