php Programming Glossary: decodedstr
Can you convert the output of php crypt() to valid MD5? http://stackoverflow.com/questions/461800/can-you-convert-the-output-of-php-crypt-to-valid-md5 into single character 6 bit chunks bitArray str_split str decodedStr '' foreach bitArray as bits if bits ' ' indicates the end of.. return significant digits so use sprintf to pad to 6 bits decodedStr . sprintf ' 06s' decbin alpha bits there can be up to 6 unused.. up to 6 unused bits at the end of a string so discard them decodedStr substr decodedStr 0 strlen decodedStr strlen decodedStr 8 byteArray..
|