quick mockup:
<?php
class Hasher {
public function bringMeTheHash($plain_text)
{
$hash_types = ['md2', 'md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha384', 'sha512', 'sex'];
echo '<ul>';
foreach($hash_types as $hash_type)
{
$hash = hash($hash_type, $plain_text);
if($hash === false)
{
$hash = "Hash type " . $hash_type . " is not found";
}
echo '<li>' . $hash_type . ' : ' . $hash . '</li>';
}
echo '</ul>';
}
}
$hash = new Hasher;
$hash->bringMeTheHash("I don't know why i use OOP");