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/
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/
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) |
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; |