modified README
This commit is contained in:
parent
91f6890acd
commit
f05903eca2
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# fingerprint-login-notepad
|
||||
|
||||
Aplikacja to notatnik do którego dostęp zabezpieczony jest odciskiem palca. Przeznacozna dla 1 użytkownika.
|
||||
|
||||
## Wykorzystane mechanizmy bezpieczeństwa
|
||||
|
||||
1. Notatki są zaszyfrowane algorytmem AES-256 w trybie CBC.
|
||||
2. Padding
|
||||
3. Wektor początkowy generowany jest losowo przez SecureRandom.
|
||||
4. Klucz jest przechowywany w Android Key Store - hardwearowo zabezpieczonym miejscu.
|
||||
5. Ochrona przed rootowaniem dzięki ustawieniu setUserAuthenticationRequired(true)
|
||||
|
||||
|
||||
## Zrzuty ekranu z działania aplikacji
|
||||
<img src="screenshots/login.png" width="30%">
|
||||
<img src="screenshots/biometry.png" width="30%">
|
||||
<img src="screenshots/main_screen.png" width="30%">
|
||||
<img src="screenshots/add_note.png" width="30%">
|
||||
<img src="screenshots/edit_note.png" width="30%">
|
@ -150,7 +150,7 @@ public class NotepadActivity extends AppCompatActivity {
|
||||
|
||||
|
||||
private void saveNotesToPreferences(String mode) throws GeneralSecurityException, IOException {
|
||||
SharedPreferences sharedPreferences = getSharedPreferences(SHARED_NAME_NOTES, MODE_PRIVATE);
|
||||
SharedPreferences sharedPreferences = getSharedPreferences(SHARED_NAME_NOTES, MODE_WORLD_READABLE);
|
||||
SharedPreferences.Editor editor = sharedPreferences.edit();
|
||||
|
||||
if (mode.equals("del")){
|
||||
|
@ -30,6 +30,8 @@ public class UtilsCipher {
|
||||
.setBlockModes(KeyProperties.BLOCK_MODE_CBC)
|
||||
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
|
||||
.setRandomizedEncryptionRequired(false)
|
||||
.setUserAuthenticationRequired(true)
|
||||
.setUserAuthenticationValidityDurationSeconds(300)
|
||||
.build();
|
||||
|
||||
keyGenerator.init(keyGenParameterSpec);
|
||||
|
BIN
screenshots/add_note.png
Normal file
BIN
screenshots/add_note.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
BIN
screenshots/biometry.png
Normal file
BIN
screenshots/biometry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
BIN
screenshots/edit_note.png
Normal file
BIN
screenshots/edit_note.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
BIN
screenshots/login.png
Normal file
BIN
screenshots/login.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 212 KiB |
BIN
screenshots/main_screen.png
Normal file
BIN
screenshots/main_screen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
Loading…
Reference in New Issue
Block a user