-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Made a fake login and register on local database
Support fake login and register on local database and remove useless file
- Loading branch information
Showing
15 changed files
with
336 additions
and
173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<litepal> | ||
<dbname value="GameHistory"></dbname> | ||
<version value="2"></version> | ||
<version value="3"></version> | ||
<list> | ||
<mapping class="com.example.sudoku.LastRecord"></mapping> | ||
<mapping class="com.example.sudoku.GameRecord"></mapping> | ||
<mapping class="com.example.sudoku.userInfo"></mapping> | ||
</list> | ||
</litepal> |
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
41 changes: 41 additions & 0 deletions
41
SudokuApp-GS/Sudoku/app/src/main/java/com/example/sudoku/MD5.java
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,41 @@ | ||
package com.example.sudoku; | ||
import java.math.BigInteger; | ||
import java.security.MessageDigest; | ||
import java.security.NoSuchAlgorithmException; | ||
|
||
public class MD5 { | ||
public static String getMd5(String input) | ||
{ | ||
try { | ||
|
||
// Static getInstance method is called with hashing MD5 | ||
MessageDigest md = MessageDigest.getInstance("MD5"); | ||
|
||
// digest() method is called to calculate message digest | ||
// of an input digest() return array of byte | ||
byte[] messageDigest = md.digest(input.getBytes()); | ||
|
||
// Convert byte array into signum representation | ||
BigInteger no = new BigInteger(1, messageDigest); | ||
|
||
// Convert message digest into hex value | ||
String hashtext = no.toString(16); | ||
while (hashtext.length() < 32) { | ||
hashtext = "0" + hashtext; | ||
} | ||
return hashtext; | ||
} | ||
|
||
// For specifying wrong message digest algorithms | ||
catch (NoSuchAlgorithmException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
|
||
// Driver code | ||
public static void main(String args[]) throws NoSuchAlgorithmException | ||
{ | ||
String s = "GeeksForGeeks"; | ||
System.out.println("Your HashCode Generated by MD5 is: " + getMd5(s)); | ||
} | ||
} |
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
29 changes: 0 additions & 29 deletions
29
SudokuApp-GS/Sudoku/app/src/main/java/com/example/sudoku/data/LoginDataSource.java
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
SudokuApp-GS/Sudoku/app/src/main/java/com/example/sudoku/data/LoginRepository.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.