没有合适的资源?快使用搜索试试~ 我知道了~
hashids-elixir:字符串化您的ID
共17个文件
exs:6个
ex:4个
md:3个
需积分: 9 0 下载量 6 浏览量
2021-04-29
10:00:37
上传
评论
收藏 14KB ZIP 举报
温馨提示
Hashids Hashids使您可以通过可逆映射混淆数字标识符。 这是来自JavaScript的。 安装 将Hashids添加为您的Mix项目的依赖项: defp deps do [ { :hashids , " ~> 2.0 " } ] end 用法 Hashids将整数列表编码为字符串(技术上为iodata)。 某些编码参数可以自定义。 s = Hashids . new ([ salt: " 123 " , # using a custom salt helps producing unique cipher text min_len: 2 , # minimum length of the cipher text (1 by default) ]) cipher1 = Hashids . encode (s, 129 ) # => "pE6"
资源推荐
资源详情
资源评论
收起资源包目录
hashids-elixir-master.zip (17个子文件)
hashids-elixir-master
mix.lock 2KB
.gitignore 646B
mix.exs 1KB
LICENSE.md 1KB
.travis.yml 91B
.formatter.exs 97B
CHANGELOG.md 476B
.gitmodules 100B
bench
decode_bench.exs 1KB
encode_bench.exs 935B
README.md 2KB
lib
hashids
error.ex 58B
helpers.ex 2KB
decoding_error.ex 66B
hashids.ex 11KB
test
test_helper.exs 2KB
hashids_test.exs 894B
fixtures
共 17 条
- 1
资源评论
RonaldWang
- 粉丝: 22
- 资源: 4586
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功