文件名称:Hashids:Hashids 的只读发布历史
文件大小:15KB
文件格式:ZIP
更新时间:2024-07-22 04:14:29
Perl
名称 Hashids - 从数字生成短哈希 概要 use Hashids; my $hashids = Hashids->new('this is my salt'); # encrypt a single number my $hash = $hashids->encode(123); # 'YDx' my $number = $hashids->decode('YDx'); # 123 # or a list $hash = $hashids->encode(1, 2, 3); # 'eGtrS8' my @numbers = $hashids->decode('laHquq'); # (1, 2, 3) # also get results in an arrayref my $numbers = $hashids->decode('l
【文件预览】:
Hashids-master
----cpanfile(214B)
----MANIFEST(165B)
----Build.PL(2KB)
----t()
--------02_subclass.t(557B)
--------00_compile.t(78B)
--------01_hashids.t(9KB)
--------lib()
----LICENSE(1KB)
----minil.toml(48B)
----META.json(2KB)
----lib()
--------Hashids.pm(11KB)
----README.md(5KB)
----META.yml(950B)
----Changes(1KB)