-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
974eb2c
commit ddc3d4c
Showing
25 changed files
with
40,792 additions
and
21,821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package me.ag2s.tts.services; | ||
|
||
import static me.ag2s.tts.utils.CommonTool.sha256Encode; | ||
|
||
import java.math.BigInteger; | ||
|
||
public class SecTool { | ||
|
||
public static String getSecMsGec(){ | ||
return sha256Encode(getTicks()+Constants.TOKEN).toUpperCase(); | ||
} | ||
|
||
private static long getTicks(){ | ||
BigInteger seed = BigInteger.valueOf(System.currentTimeMillis()); | ||
seed=seed.multiply(BigInteger.valueOf(10000)); | ||
seed=seed.add(new BigInteger("116444736000000000")); | ||
seed=seed.subtract(seed.mod(BigInteger.valueOf(3000000000L))); | ||
return seed.longValue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.