summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty/library/ngx.base64.lua
blob: 5f8184d5bc899d03c76cfd47f6e33394b4b481c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---@meta
local base64 = {
  version = require("resty.core.base").version,
}

---Encode input using base64url rules. Returns the encoded string.
---@param s string
---@return string
function base64.encode_base64url(s) end

---Decode input using base64url rules. Returns the decoded string.
---
---If the input is not a valid base64url encoded string, decoded will be `nil`
---and err will be a string describing the error.
---
---@param  s       string
---@return string? decoded
---@return string? err
function base64.decode_base64url(s) end

return base64