aboutsummaryrefslogtreecommitdiffstats
path: root/server/resty/session/ciphers/none.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/resty/session/ciphers/none.lua')
-rw-r--r--server/resty/session/ciphers/none.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/resty/session/ciphers/none.lua b/server/resty/session/ciphers/none.lua
new file mode 100644
index 0000000..b29bb88
--- /dev/null
+++ b/server/resty/session/ciphers/none.lua
@@ -0,0 +1,15 @@
+local cipher = {}
+
+function cipher.new()
+ return cipher
+end
+
+function cipher.encrypt(_, data, _, _)
+ return data
+end
+
+function cipher.decrypt(_, data, _, _, _)
+ return data
+end
+
+return cipher