help with pack()ing a string
Posted: Tue Apr 21, 2009 6:42 pm
Greetings,
Ive written a script to generate passwords for an LDAP server, and with a little searching online ive found the bits to make it work. BUT, just getting it to work isnt good enough for me, i want to understand how it works. the only bit i dont understand is when
so this packs the string into binary format, high nibble first. what does high nibble first mean?
if givin the hex value 0x10, what is the process to convert that value binary, hight bibble first?
Thanks!
Ive written a script to generate passwords for an LDAP server, and with a little searching online ive found the bits to make it work. BUT, just getting it to work isnt good enough for me, i want to understand how it works. the only bit i dont understand is when
Code: Select all
pack("H*", $hash);if givin the hex value 0x10, what is the process to convert that value binary, hight bibble first?
Thanks!