Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Aug 26, 2021
0 parents commit 5fe86e5
Show file tree
Hide file tree
Showing 77 changed files with 2,597 additions and 0 deletions.
Binary file added .github/images/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/screenshot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/screenshot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Built application files
*.apk
*.aar
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/

Miscellaneous/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Niko Diamadis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Pazzword
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![release](https://img.shields.io/github/release/cyb3rko/pazzword.svg)](https://github.com/cyb3rko/pazzword/releases/latest)
[![last commit](https://img.shields.io/github/last-commit/cyb3rko/pazzword?color=F34C9F)](https://github.com/cyb3rko/pazzword/commits/master)
[![license](https://img.shields.io/github/license/cyb3rko/pazzword)](https://opensource.org/licenses/MIT)
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fcyb3rko%2Fpazzword&count_bg=%23256AF5&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=Repo+views&edge_flat=false)](https://hits.seeyoufarm.com)

![pazzword](https://socialify.git.ci/cyb3rko/pazzword/image?description=1&font=Source%20Code%20Pro&forks=1&issues=1&logo=https%3A%2F%2Fcdn.cyb3rko.de%2FApps%2FPazzword%2Fic_launcher_resized.png&owner=1&pattern=Signal&pulls=1&stargazers=1&theme=Dark)

- [About this project](#about-this-project)
<!-- - [Translation](#translation) -->
- [Features](#features)
- [Screenshots](#screenshots)
- [Contribute](#contribute)
- [License](#license)

---

## About this project
Welcome to the most intelligent password evaluator app 'Pazzword'.

It analyzes passwords using the open source library '[nbvcxz](https://github.com/GoSimpleLLC/nbvcxz)', a Java adaption of '[zxcvbn](https://github.com/dropbox/zxcvbn)' by Dropbox.

In comparison to other password evaluator tools this secure and flexible tool uses algorithms for pattern matching and conservative estimation to give you the best results currently possible. It recognizes and weighs 30.000 common passwords, common names & surnames, most english words and common patterns like dates, repeats, sequences, keyboard patterns and l33t speak.
For more information visit https://github.com/dropbox/zxcvbn.

You are welcomed to open new [issues](https://github.com/cyb3rko/pazzword/issues) and creating [pull requests](https://github.com/cyb3rko/pazzword/pulls) for improving code and implementing new features (see chapter [Contribute](#contribute)).
Furthermore I'm still a student so the progress might not be as fast as on other projects.

You can also have a look at my other projects:
[My GitHub page](https://github.com/cyb3rko)

[<img src=".github/images/download.png" width="230">](https://play.google.com/store/apps/details?id=com.cyb3rko.pazzword)

<!-- ### Translation
[TRANSLATION PROJECT](https://poeditor.com/join/project?hash=ygnGPjgRfN)
You can now translate this app in many different languages.
If you can't find a language you're looking for, just drop me a mail at [email protected] and I will add it. -->

## Features
Analyzing entered passwords with the following feedback:
- a score,
- entropy,
- custom suggestions,
- found patterns and
- estimated stability against cracking
for the returned password.

Accessing the 200 most common passwords of 2020 ([source](https://nordpass.com/most-common-passwords-list/)).

## Screenshots

|<img src=".github/images/screenshot_1.png" width="270">|<img src=".github/images/screenshot_2.png" width="270">|<img src=".github/images/screenshot_3.png" width="270">|
|:---:|:---:|:---:|

## Contribute
Of course I'm happy about any kind of contribution.

For creating [issues](https://github.com/cyb3rko/pazzword/issues) there's no real guideline you should follow.
If you create [pull requests](https://github.com/cyb3rko/pazzword/pulls) please try to use my syntax that I follow.
Using a unified code format makes it much easier for me and for everyone else.

## License

MIT License

* http://www.opensource.org/licenses/mit-license.php
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
72 changes: 72 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'com.mikepenz.aboutlibraries.plugin'
}

android {
signingConfigs {
signingConf {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

storeFile file(properties.getProperty("signing.file"))
storePassword properties.getProperty("signing.password")
keyAlias properties.getProperty("signing.key.alias")
keyPassword properties.getProperty("signing.key.password")
}
}

compileSdk 30
defaultConfig {
applicationId "com.cyb3rko.pazzword"
minSdk 16
targetSdk 30
versionCode 1
versionName "1.0.0"
}

buildTypes {
release {
minifyEnabled true
crunchPngs false
shrinkResources true
signingConfig signingConfigs.signingConf
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
multiDexEnabled true
crunchPngs false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
}
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'androidx.core:core-ktx:1.6.0'
implementation "androidx.multidex:multidex:2.0.1"
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
implementation 'com.afollestad.material-dialogs:bottomsheets:3.3.0'
implementation 'com.airbnb.android:lottie:4.0.0'
implementation 'com.github.cyb3rko:about-icons:1.4.0'
implementation 'com.google.android.material:material:1.5.0-alpha02'
implementation "com.mikepenz:aboutlibraries-core:$about_libraries_version"
implementation "com.mikepenz:aboutlibraries:$about_libraries_version"
implementation 'me.gosimple:nbvcxz:1.5.0'
implementation 'io.github.medyo:android-about-page:2.0.0'
}
27 changes: 27 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep class **.R$* {
<fields>;
}

-keep class me.gosimple.nbvcxz.matching.** { *; }
26 changes: 26 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyb3rko.pazzword">

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Pazzword">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.mikepenz.aboutlibraries.ui.LibsActivity"
android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar" />
</application>

</manifest>
1 change: 1 addition & 0 deletions app/src/main/assets/insecure.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"v":"5.5.10","fr":30,"ip":0,"op":60,"w":300,"h":300,"nm":"sec2-04","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Layer 9 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.6,"y":1},"o":{"x":0.32,"y":0.94},"t":30,"s":[101.269,137.868,0],"to":[0,-4.167,0],"ti":[0,4.167,0]},{"t":40,"s":[101.269,112.868,0]}],"ix":2},"a":{"a":0,"k":[30,113.074,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.6,"y":1},"o":{"x":0.32,"y":0.94},"t":30,"s":[{"i":[[0,0],[0,0],[26.913,0],[0,-26.914],[0,0]],"o":[[0,0],[0,-26.914],[-26.914,0],[0,0],[0,0]],"v":[[48.732,16.287],[48.731,-10.556],[0,-59.287],[-48.731,-10.556],[-48.464,23.787]],"c":false}]},{"t":40,"s":[{"i":[[0,0],[0,0],[26.913,0],[0,-26.914],[0,0]],"o":[[0,0],[0,-26.914],[-26.914,0],[0,0],[0,0]],"v":[[48.732,12.037],[48.731,-10.556],[0,-59.287],[-48.731,-10.556],[-48.464,48.287]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[78.731,89.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":20,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim In Path","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Layer 2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[150,189.287,0],"ix":2},"a":{"a":0,"k":[97,85.919,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.511,0],[0,0],[0,7.51],[0,0],[-7.511,0],[0,-7.511],[0,0]],"o":[[0,0],[-7.511,0],[0,0],[0,-7.511],[7.511,0],[0,0],[0,7.51]],"v":[[0,24.365],[0,24.365],[-13.599,10.766],[-13.599,-10.767],[0,-24.365],[13.599,-10.767],[13.599,10.766]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[97,85.846],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-11.962,0],[0,0],[0,-11.961],[0,0],[11.962,0],[0,0],[0,11.961],[0,0]],"o":[[0,0],[11.962,0],[0,0],[0,11.961],[0,0],[-11.962,0],[0,0],[0,-11.961]],"v":[[-45.342,-55.919],[45.341,-55.919],[67,-34.261],[67,34.261],[45.341,55.919],[-45.342,55.919],[-67,34.261],[-67,-34.261]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[97,85.919],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":20,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim In Path","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}
1 change: 1 addition & 0 deletions app/src/main/assets/password_unlock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/src/main/assets/secure.json

Large diffs are not rendered by default.

Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions app/src/main/java/com/cyb3rko/pazzword/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package com.cyb3rko.pazzword

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.WindowManager
import com.google.android.material.bottomnavigation.BottomNavigationView
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import androidx.navigation.ui.setupWithNavController
import com.cyb3rko.pazzword.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {

private lateinit var binding: ActivityMainBinding
private lateinit var navController: NavController

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)

binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)

val navView: BottomNavigationView = binding.navView

navController = findNavController(R.id.nav_host_fragment_activity_main)
// Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations.
val appBarConfiguration = AppBarConfiguration(
setOf(
R.id.navigation_analyze, R.id.navigation_ranking, R.id.navigation_generator
)
)
setupActionBarWithNavController(navController, appBarConfiguration)
navView.setupWithNavController(navController)
}

override fun onCreateOptionsMenu(menu: Menu?): Boolean {
menuInflater.inflate(R.menu.menu, menu)
return true
}

override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.feedback -> startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/cyb3rko/pazzword/")))
R.id.about -> navController.navigate(R.id.navigation_about)
}
return super.onOptionsItemSelected(item)
}
}
Loading

0 comments on commit 5fe86e5

Please sign in to comment.