Home  >  Article  >  Backend Development  >  可逆的加密算法,要求有点高

可逆的加密算法,要求有点高

WBOY
WBOYOriginal
2016-06-13 12:41:17724browse

求一个可逆的加密算法,要求有点高
要求:
1.加密后的长度和加密前的长度一样长
2.加密后的字符串中只允许出现a到z中的字母和0到9的数字
3.根据秘钥可以再算回来
加密前的字符串也都是字母和数字的组合
如加密前的字符串:us3kqvu

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn