guibranco / pancake

Audit required: Use of an insecure hashing function PHP-A1004
Security
Critical
3 months ago3 months old
Use of insecure md5() function found
166            throw new InvalidArgumentException("$minBrightness is out of range");
167        }
168
169        $hash = md5($text);170        $colors = array();
171        for ($i = 0; $i < 3; $i++) {
172            $current = round(((hexdec(substr($hash, $spec * $i, $spec))) / hexdec(str_pad("", $spec, "F"))) * 255);