浏览代码

Add base64url

master
JustAnotherArchivist 2 年前
父节点
当前提交
a14939b069
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      base64url

+ 5
- 0
base64url 查看文件

@@ -0,0 +1,5 @@
#!/bin/bash
# Like base64 but for the URL-safe alphabet A-Za-z0-9-_ (instead of A-Za-z0-9+/).
# This works by replacing occurrences of - with + and vice-versa, and likewise with _ and /.
# Does not support passing the filename by argument.
tr -- '\-_+/' '+/\-_' | base64 "$@"

正在加载...
取消
保存