mirrorgdit / php-encdec
类似手机号码等数字串的加密解密
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:extension
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2024-11-14 20:13:10 UTC
README
安装
composer require mirrorgdit/php-encdec
Demo
require_once './vendor/autoload.php';
use mirrorgdit\encdec\Encdec;
$decStr = Encdec::dec2any("18612345678");
$anyStr = Encdec::any2dec($decStr);
echo "将手机号码加密后:".$decStr;
echo "<br>";
echo "将加密后的串解密:".$anyStr;
问题反馈
在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流