net.neoremind.fountain.util
类 Encrypter
java.lang.Object
net.neoremind.fountain.util.Encrypter
public class Encrypter
- extends Object
验证方法
- 作者:
- hanxu, zhangxu
|
方法摘要 |
static byte[] |
encryptBySHA(byte[] data,
byte[] seeds)
算法如下:
SHA1( password ) XOR SHA1( "20-bytes random data from server" SHA1( SHA1( password ) ) ) |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Encrypter
public Encrypter()
encryptBySHA
public static byte[] encryptBySHA(byte[] data,
byte[] seeds)
throws NoSuchAlgorithmException
- 算法如下:
SHA1( password ) XOR SHA1( "20-bytes random data from server" SHA1( SHA1( password ) ) )
- 参数:
data - 密码字节数组seeds - 20-byte random challenge
- 返回:
- 加密后的密码字节数组
- 抛出:
NoSuchAlgorithmException
Copyright © 2016 neoremind. All rights reserved.