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
public boolean isFirstRun() { // returns true if it's the first start, otherwise false | |
boolean isFirstRun = getSharedPreferences("PREFERENCE", MODE_PRIVATE).getBoolean("isFirstRun", true); | |
if (isFirstRun){ | |
getSharedPreferences("PREFERENCE", MODE_PRIVATE) | |
.edit() | |
.putBoolean("isFirstRun", false) | |
.apply(); | |
return true; | |
} | |
return false; |
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
import hashlib, requests, getpass | |
from threading import Event | |
passwort = getpass.getpass("Password: ") | |
sha_1 = hashlib.sha1(passwort.encode()) | |
pwHash = sha_1.hexdigest().upper() | |
print ("\nPassword hash:\t" + pwHash) |
The scrip requires Python >=3.6 https://www.python.org/downloads/
run pip install GitPython
in the CMD
Install Github cli: https://github.com/cli/cli/releases/