在 PHP 中对字符串进行哈希处理

Ced*_*eCQ 2 php hash

这是哈希输出“bWNgAQW2FLc”,我想可能将特定字符串哈希到其中。有什么方法或编码可以完成这项工作吗?

非常感谢您的回复!

PS:我首先不知道哈希类型是什么

Pre*_*Tom 8

您可以使用 PHP 中提供的简单内置哈希函数来做到这一点

<?php
  echo hash('ripemd160', 'Your text goes here');
?>
Run Code Online (Sandbox Code Playgroud)

来源http://php.net/manual/en/function.hash.php