koajs / session

Simple session middleware for koa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default encoding/decoding functions

vdegenne opened this issue · comments

What is the default encoding/decoding functions/hash ?
I need to know because my front-end has an option to change one information in the cookie, I need to decode the cookie, change the information, encode the cookie back and refresh the page (quick solution). I know this is not a recommended pattern because of the security risks but this is just an application for myself.
But without knowing the hash function used in the decoding and encoding default method I can't do anything with the information front.
And the readme.md doesn't specify it.

Thanks in advance

derp.
Just realized my silly question, it's not possible to decode a hash.. that is base64.