-6

我在perl工作。我需要querystring对编辑页面进行加密。

现在我正在querystring传递?id=1

?id=hjjkdty4567778xvcvbqeweretrtryfghghgcg5677rffhjvj 像那样。

有人知道这件事吗?

4

1 回答 1

4

I take it that you have information in a URL that you want to encrypt.

If all you want is that the query string isn't immediately readable then something simple like rot13 encoding may be suitable. Take a look at Crypt::Rot13.

If you need more secure encrypting than that then another of the Crypt:: modules will suit your purpose, so take a look on CPAN.

于 2013-03-01T11:32:35.507 回答