codecamp

PHP8 sodium_unpad

(PHP 7 >= 7.2.0, PHP 8)

sodium_unpad — 删除填充数据

说明

sodium_unpad(string $string, int $block_size): string

松开填充的字符串。时序安全。

参数 

string

带衬垫的字符串。

block_size

填充的块大小。

返回值 

未填充的字符串。


PHP8 sodium_pad
PHP8 SodiumException类
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定