diff --git a/docs/Authorize.html b/docs/Authorize.html deleted file mode 100644 index b41ce77..0000000 --- a/docs/Authorize.html +++ /dev/null @@ -1,75 +0,0 @@ -Authorize
-
-
- -
- -

Authorize

- -
-
- -
- -

URL

- -
- -

http://sola.love/ww/api/authorize

- -

Method

- -
- -

POST

- -

Parameters

- -
- -
- -

Response

- -
- -

Format

- -

JSON

- -
- -

Response Code

- - - -
- -

Signature

- -

Created by Sola on 12/3/2015

\ No newline at end of file diff --git a/docs/绑定微信请求.html b/docs/绑定微信请求.html deleted file mode 100644 index fd8a1ff..0000000 --- a/docs/绑定微信请求.html +++ /dev/null @@ -1,151 +0,0 @@ -绑定微信请求 V1.3
-
-
- -
- -

绑定微信请求 V1.3

- -
-

Edition : (1.3)2015/12/04

-
- -
- -

绑定

- -
- -
- -

URL

- -

http://sola.love

- -
- -

Method

- -

POST

- -
- -

Params

- - - -
- -

More

- -
- -

ISP代码

- - - -
- -

片区代码

- - - -
- -

绑定结果页

- -
- -
- -

URL

- -

http://topaz.sinaapp.com/nm/result.html

- -
- -

Method

- -

GET

- -
- -

Params

- - - -
- -

More

- -
- -

结果类型

- - - -
- -

Author

- -

LiuYue(hangxingliu)

- -
- -

Date

- -

2015/12/04

\ No newline at end of file diff --git a/pom.xml b/pom.xml index 02cedd1..77db866 100644 --- a/pom.xml +++ b/pom.xml @@ -11,9 +11,9 @@ UTF-8 - 1.7 - 1.7 - 1.7 + 1.8 + 1.8 + 1.8 @@ -23,8 +23,8 @@ maven-compiler-plugin 3.3 - 1.7 - 1.7 + 1.8 + 1.8 @@ -116,6 +116,12 @@ org.hibernate.javax.persistence hibernate-jpa-2.1-api 1.0.0.Final - + + + de.svenkubiak + jBCrypt + 0.4 + + \ No newline at end of file diff --git a/src/test/java/love/sola/netsupport/wechat/TestEncrypt.java b/src/test/java/love/sola/netsupport/wechat/TestEncrypt.java new file mode 100644 index 0000000..e5779d4 --- /dev/null +++ b/src/test/java/love/sola/netsupport/wechat/TestEncrypt.java @@ -0,0 +1,27 @@ +package love.sola.netsupport.wechat; + +import org.junit.Test; +import org.mindrot.jbcrypt.BCrypt; + +/** + * *********************************************** + * Created by Sola on 2015/12/6. + * Don't modify this source without my agreement + * *********************************************** + */ +public class TestEncrypt { + + @Test + public void test() { + String hash = BCrypt.hashpw("mypasswordhere", BCrypt.gensalt()); + System.out.println("hash = " + hash); + System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash)); + } + + @Test + public void testChk() { + String hash = "$2a$10$RCXxfEygwHQeF4BKjx5Uwu/C72HqoCN.jKpNSNdwizcy7m301C9Am"; + System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash)); + } + +}