1$password = 'test123';
2
3/*
4 Always use salt for security reasons.
5 I'm using the BCRYPT algorithm use any valid one you like.
6*/
7$options['salt'] = 'usesomesillystringforsalt';
8$options['cost'] = 3;
9echo password_hash($password, PASSWORD_BCRYPT, $options)
1
2<?php
3echo hash('ripemd160', 'The quick brown fox jumped over the lazy dog.');
4?>
5
6
1hash($hashingMethod, $dataToBeHashed, $BinaryOutputMode = false)
2
3some hashingMethod options:
4
5md5
6sha1
7sha256
8sha384
9sha512