基于Java的加密器,仅生成字母数字字符 [英] Java based encrypter that produces only alphanumeric characters

查看:58
本文介绍了基于Java的加密器,仅生成字母数字字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个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 ( RFC ).还有一些Base64变体,可以代替麻烦的+和/字符:请参见 Wikipedia文章 RFC .

Base32 (RFC). There're also variants of Base64 which replace the troublesome + and / characters: See the Wikipedia article or the RFC.

这篇关于基于Java的加密器,仅生成字母数字字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆