1.2.516. Hash Algorithms

There is a long but limited list of hashing algorithm available to PHP. The one found doesn’t seem to be existing.

<?php

// This hash has existed in PHP. Check with hash_algos() if it is available on your system.
echo hash('ripmed160', 'The quick brown fox jumped over the lazy dog.');

// This hash doesn't exist
echo hash('ripemd160', 'The quick brown fox jumped over the lazy dog.');

?>

See also hash_algos.

1.2.516.1. Suggestions

  • Use a hash algorithm that is available on several PHP versions

  • Fix the name of the hash algorithm

1.2.516.2. Specs

Short name

Php/HashAlgos

Rulesets

All, Analyze

Exakat since

0.8.4

PHP Version

All

Severity

Major

Time To Fix

Slow (1 hour)

Precision

Very high

Features

hash

Available in

Entreprise Edition, Exakat Cloud