阅读背景:

在ruby中散列网址的最佳方法是什么?

来源:互联网 

I'm writing a web app that points to external links. I'm looking to create a non-sequential, non-guessable id for each document that I can use in the URL. I did the obvious thing: treating the url as a string and str#crypt on it, but that seems to choke on any non-alphanumberic characters, like the slashes, dots and underscores.I'm writing a web app that points to external l




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: