基于Java的加密器,仅生成字母数字字符 [英] Java based encrypter that produces only alphanumeric characters
问题描述
我知道这个jasypt库:
I know of this jasypt library:
http://www.jasypt.org/index.html
效果很好,但仅提供十六进制或Base64进行加密.
which works great but only provides Hexadecimal or Base64 for the encrypted out.
都不适合我,因为十六进制代码太长,并且Base64无法安全地通过URL或作为Javascript参数传递.我正在寻找只产生小写字母a到z和数字0到9的东西.是否有这样的库?
Neither works for me because Hexadecimal code is too long and Base64 cannot be passed safely on URL or as Javascript parameters. I am looking for something that produce only lower/upper case letters a to z and number 0 to 9. Is there such a library?
推荐答案
Base32 (
Base32 (RFC). There're also variants of Base64 which replace the troublesome + and / characters: See the Wikipedia article or the RFC.
这篇关于基于Java的加密器,仅生成字母数字字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!