net.neoremind.fountain.util
类 Encrypter

java.lang.Object
  继承者 net.neoremind.fountain.util.Encrypter

public class Encrypter
extends Object

验证方法

作者:
hanxu, zhangxu

构造方法摘要
Encrypter()
           
 
方法摘要
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.