Software /
code /
prosody
Comparison
util/paseto.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:16 +0100 |
parent | 12840:33d902b093f0 |
comparison
equal
deleted
inserted
replaced
12974:ba409c67353b | 12975:d10957394a3c |
---|---|
1 local crypto = require "util.crypto"; | 1 local crypto = require "prosody.util.crypto"; |
2 local json = require "util.json"; | 2 local json = require "prosody.util.json"; |
3 local hashes = require "util.hashes"; | 3 local hashes = require "prosody.util.hashes"; |
4 local base64_encode = require "util.encodings".base64.encode; | 4 local base64_encode = require "prosody.util.encodings".base64.encode; |
5 local base64_decode = require "util.encodings".base64.decode; | 5 local base64_decode = require "prosody.util.encodings".base64.decode; |
6 local secure_equals = require "util.hashes".equals; | 6 local secure_equals = require "prosody.util.hashes".equals; |
7 local bit = require "util.bitcompat"; | 7 local bit = require "prosody.util.bitcompat"; |
8 local hex = require "util.hex"; | 8 local hex = require "prosody.util.hex"; |
9 local rand = require "util.random"; | 9 local rand = require "prosody.util.random"; |
10 local s_pack = require "util.struct".pack; | 10 local s_pack = require "prosody.util.struct".pack; |
11 | 11 |
12 local s_gsub = string.gsub; | 12 local s_gsub = string.gsub; |
13 | 13 |
14 local v4_public = {}; | 14 local v4_public = {}; |
15 | 15 |