小编use*_*810的帖子

2
推荐指数
1
解决办法
1万
查看次数

自己的加密脚本

<?php
   error_reporting(E_ALL ^ E_NOTICE);
   $string = "123456";
   $replace_from = array(
   "1",
   "2",
   "3",
   "4",
   "5",
   "6");
   $replace_to = array(
   "Al01",
   "Br20",
   "Ch03",
   "De40",
   "Ec05",
   "Fo60");
   $hashed = str_replace($string, $replace_from, $replace_to);
   echo "String: ". $string ."<br>";
   echo "Encrypted: ". $hashed ."<br>";
   echo "<br>";
   print_r($hashed);
?>
Run Code Online (Sandbox Code Playgroud)

我明白了

Encrypted: Array
Run Code Online (Sandbox Code Playgroud)

但我期待

Encrypted: Al01Br20Ch03De40Ec05Fo60
Run Code Online (Sandbox Code Playgroud)

我如何获得哈希值作为回报?

php arrays encryption passwords hash

0
推荐指数
1
解决办法
2156
查看次数

标签 统计

arrays ×1

batch-file ×1

encryption ×1

hash ×1

invisible ×1

mkdir ×1

passwords ×1

php ×1