etherCorps / SK-Redis-SessionManager

Redis integration in SvelteKit for Session Management
https://sk-vercel-ioredis.vercel.app/
MIT License
25 stars 3 forks source link

Expose encryption method for other kinds of keys #12

Open theetrain opened 2 weeks ago

theetrain commented 2 weeks ago

Hello again, I'm aware you're busy so I'm just making a note here for a future contribution.

Though this library is specifically designed to encrypt a session ID, it could be used to encrypt anything. Perhaps by re-exporting signSessionKey as a class instance method, it can be leveraged to store and retrieve any encrypted keys.

Let me know if this sounds reasonable.