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