开发者

How would you make a simple cipher for an integer in rails?

开发者 https://www.devze.com 2023-01-19 14:15 出处:网络
I have an integer output from a private controller action that I would like to store \'encrypted\' in my database. What methods would you use to codify this integer such that I can retrieve u开发者_St

I have an integer output from a private controller action that I would like to store 'encrypted' in my database. What methods would you use to codify this integer such that I can retrieve u开发者_StackOverflowp to ~200 of these numbers easily and quickly to be served in a view to the right user?


Have a look at http://github.com/spikex/strongbox


You want to use a SHA1 hash? Or a flagmap? Or what is 'encrypted' exactly?

0

精彩评论

暂无评论...
验证码 换一张
取 消