问题描述
我想知道是否有加密算法只返回
只有小写的加密字符串。
提前致谢。
没有现代算法可以做到这一点,尽管许多经典算法将会这样做:Ceasar,Playfair,Vigenere等。这取决于明文
只有字母,没有数字。
对你来说更有用的是编码,比如Base32
仅使用单个案例的字母,但它也包括数字。
参见RFC 4648()了解详情。
使用现代算法(AES / Rijndael)加密和Base32编码
结果字节流。
如果你确实只需要小写字母,没有数字,那么你
可以做类似编码的事情将密文作为十六进制,然后使用
单个字母替换数字:0-m,1 -n等。你
必须自己编写。
rossum
Base-26
JR
" rossum" < ro ****** @ coldmail.com ???
??????:5n ****************** **************@4ax.com。 ..
没有现代算法可以做到这一点,尽管许多经典算法将会这样做:Ceasar,Playfair,Vigenere等。这取决于明文
只有字母,没有数字。
对你来说更有用的是编码,比如Base32
仅使用单个案例的字母,但它也包括数字。
参见RFC 4648()了解详情。
使用现代算法(AES / Rijndael)加密和Base32编码
结果字节流。
如果你确实只需要小写字母,没有数字,那么你
可以做类似编码的事情将密文作为十六进制,然后使用
单个字母替换数字:0-m,1 -n等。你
必须自己编写。
rossum
I would like to know if there is a encryption algorithm that returns
only lowercase encrypted string.
Thanks in advance.
No modern algorithm does this, though many classical algorithms will
do so: Ceasar, Playfair, Vigenere etc. These depend on the plaintext
only having letters, no digits.
What may be of more use to you is an encoding such as Base32 which
only uses letters of a single case, though it also includes digits.
See RFC 4648 (http://tools.ietf.org/html/rfc4648) for details.
Encrypt using a modern algorithm (AES/Rijndael) and Base32 encode the
resulting byte stream.
If you really do need just lowercase letters, no digits, then you
could do something like encode the cyphertext as hex and then use a
single letter substitution for the digits: 0 -m, 1 -n etc. You
would have to write this yourself.
rossum
No modern algorithm does this, though many classical algorithms will
do so: Ceasar, Playfair, Vigenere etc. These depend on the plaintext
only having letters, no digits.
What may be of more use to you is an encoding such as Base32 which
only uses letters of a single case, though it also includes digits.
See RFC 4648 (http://tools.ietf.org/html/rfc4648) for details.
Encrypt using a modern algorithm (AES/Rijndael) and Base32 encode the
resulting byte stream.
If you really do need just lowercase letters, no digits, then you
could do something like encode the cyphertext as hex and then use a
single letter substitution for the digits: 0 -m, 1 -n etc. You
would have to write this yourself.
rossum
这篇关于加密算法,仅返回小写加密字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!