├── android ├── gradle.properties ├── .settings │ └── org.eclipse.buildship.core.prefs ├── app │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── cipherly │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── .classpath │ ├── .project │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .project ├── settings.gradle └── build.gradle ├── assets ├── key.png ├── fonts │ ├── Title.otf │ ├── Subtitle.otf │ └── GoogleSansRegular.ttf └── Screenshots │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ └── 6.jpg ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── main.m │ ├── AppDelegate.m │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── WorkspaceSettings.xcsettings ├── Podfile.lock └── Podfile ├── .metadata ├── lib ├── bloc │ └── PasswordBloc.dart ├── model │ └── PasswordModel.dart ├── random_string.dart ├── database │ └── Database.dart ├── main.dart └── pages │ ├── GreetingsPage.dart │ ├── SettingsPage.dart │ ├── SetMasterPassword.dart │ ├── PasswordHomepage.dart │ ├── ViewPasswordPage.dart │ └── AddPasswordPage.dart ├── test └── widget_test.dart ├── README.md ├── .gitignore ├── pubspec.yaml ├── pubspec.lock └── LICENSE /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /assets/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/key.png -------------------------------------------------------------------------------- /assets/fonts/Title.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/fonts/Title.otf -------------------------------------------------------------------------------- /assets/Screenshots/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/Screenshots/1.jpg -------------------------------------------------------------------------------- /assets/Screenshots/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/Screenshots/2.jpg -------------------------------------------------------------------------------- /assets/Screenshots/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/Screenshots/3.jpg -------------------------------------------------------------------------------- /assets/Screenshots/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/Screenshots/4.jpg -------------------------------------------------------------------------------- /assets/Screenshots/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/Screenshots/5.jpg -------------------------------------------------------------------------------- /assets/Screenshots/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/Screenshots/6.jpg -------------------------------------------------------------------------------- /assets/fonts/Subtitle.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/fonts/Subtitle.otf -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /assets/fonts/GoogleSansRegular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/assets/fonts/GoogleSansRegular.ttf -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtwn105/Cipherly/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/example/cipherly/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.cipherly; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/bloc/PasswordBloc.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:cipherly/database/Database.dart'; 4 | import 'package:cipherly/model/PasswordModel.dart'; 5 | 6 | class PasswordBloc { 7 | PasswordBloc() { 8 | getPasswords(); 9 | } 10 | final _passwordController = StreamController>.broadcast(); 11 | get passwords => _passwordController.stream; 12 | 13 | dispose() { 14 | _passwordController.close(); 15 | } 16 | 17 | getPasswords() async { 18 | _passwordController.sink.add(await DBProvider.db.getAllPasswords()); 19 | } 20 | 21 | add(Password password) { 22 | DBProvider.db.newPassword(password); 23 | getPasswords(); 24 | } 25 | update(Password password) { 26 | DBProvider.db.updatePassword(password); 27 | getPasswords(); 28 | } 29 | delete(int id) { 30 | DBProvider.db.deletePassword(id); 31 | getPasswords(); 32 | } 33 | 34 | deleteAll() { 35 | DBProvider.db.deleteAll(); 36 | getPasswords(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:cipherly/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/model/PasswordModel.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | Password passwordFromJson(String str) { 4 | final jsonData = json.decode(str); 5 | return Password.fromJson(jsonData); 6 | } 7 | 8 | String clientToJson(Password data) { 9 | final dyn = data.toJson(); 10 | return json.encode(dyn); 11 | } 12 | 13 | class Password { 14 | int id; 15 | String userName; 16 | String appName; 17 | String password; 18 | String icon; 19 | String color; 20 | 21 | Password({this.id, this.icon,this.color, this.userName, this.appName, this.password}); 22 | 23 | Password.fromJson(Map json) { 24 | id = json['id']; 25 | appName = json['app_name']; 26 | password = json['password']; 27 | userName = json['user_name']; 28 | icon = json['icon']; 29 | color = json['color']; 30 | } 31 | 32 | Map toJson() { 33 | final Map data = new Map(); 34 | data['id'] = this.id; 35 | data['app_name'] = this.appName; 36 | data['password'] = this.password; 37 | data['user_name'] = this.userName; 38 | data['icon'] = this.icon; 39 | data['color'] = this.color; 40 | return data; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cipherly: A Password Manager built using Flutter! 2 | 3 | ### Cipherly is first open source Password Manager made using Flutter! 4 | 5 | ![Cipherly](https://user-images.githubusercontent.com/12975481/159705559-c15afa4d-9784-4058-9ae9-8d662fb8909c.png) 6 | 7 | Cipherly is a password manager built using Flutter based on AES Encryption. Cipherly securely stores the passwords and protect them using AES Encryption. 8 | 9 | A Master Password is used to encrypt the passwords and it can be only decrypted using it. 10 | 11 | ## FeatureS: 12 | 13 | - [x] Basic Password Store 14 | - [x] Encrypt Decrypt Password 15 | - [x] Encrypt using Master Password as Key 16 | - [ ] Default social networks like Facebook, Google, etc. 17 | - [x] Custom Passwords 18 | - [x] Generate Random Password 19 | - [x] Password Strength Checker 20 | - [ ] Search 21 | - [x] Dark Mode 22 | - [x] Fingerprint or Custom Pin Lock to secure all passwords 23 | 24 | ## Screenshots 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | /build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 71 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSFaceIDUsageDescription 6 | Why is my app authenticating using face id? 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | cipherly 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - flutter_secure_storage (3.2.0): 4 | - Flutter 5 | - FMDB (2.7.5): 6 | - FMDB/standard (= 2.7.5) 7 | - FMDB/standard (2.7.5) 8 | - local_auth (0.0.1): 9 | - Flutter 10 | - path_provider (0.0.1): 11 | - Flutter 12 | - shared_preferences (0.0.1): 13 | - Flutter 14 | - sqflite (0.0.1): 15 | - Flutter 16 | - FMDB (~> 2.7.2) 17 | 18 | DEPENDENCIES: 19 | - Flutter (from `.symlinks/flutter/ios`) 20 | - flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`) 21 | - local_auth (from `.symlinks/plugins/local_auth/ios`) 22 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 23 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) 24 | - sqflite (from `.symlinks/plugins/sqflite/ios`) 25 | 26 | SPEC REPOS: 27 | https://github.com/cocoapods/specs.git: 28 | - FMDB 29 | 30 | EXTERNAL SOURCES: 31 | Flutter: 32 | :path: ".symlinks/flutter/ios" 33 | flutter_secure_storage: 34 | :path: ".symlinks/plugins/flutter_secure_storage/ios" 35 | local_auth: 36 | :path: ".symlinks/plugins/local_auth/ios" 37 | path_provider: 38 | :path: ".symlinks/plugins/path_provider/ios" 39 | shared_preferences: 40 | :path: ".symlinks/plugins/shared_preferences/ios" 41 | sqflite: 42 | :path: ".symlinks/plugins/sqflite/ios" 43 | 44 | SPEC CHECKSUMS: 45 | Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a 46 | flutter_secure_storage: 0c5779648ff644110e507909b77a57e620cbbf8b 47 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a 48 | local_auth: 17f985934bb4ab2637431e5b3fe1b2d6698d2051 49 | path_provider: f96fff6166a8867510d2c25fdcc346327cc4b259 50 | shared_preferences: 1feebfa37bb57264736e16865e7ffae7fc99b523 51 | sqflite: ff1d9da63c06588cc8d1faf7256d741f16989d5a 52 | 53 | PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09 54 | 55 | COCOAPODS: 1.7.0 56 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 11 | 15 | 22 | 26 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.cipherly" 37 | minSdkVersion 18 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | api 'androidx.core:core:1.2.0-alpha01' 62 | } 63 | -------------------------------------------------------------------------------- /lib/random_string.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | const ASCII_START = 33; 4 | const ASCII_END = 126; 5 | const NUMERIC_START = 48; 6 | const NUMERIC_END = 57; 7 | const LOWER_ALPHA_START = 97; 8 | const LOWER_ALPHA_END = 122; 9 | const UPPER_ALPHA_START = 65; 10 | const UPPER_ALPHA_END = 90; 11 | 12 | /// Generates a random integer where [from] <= [to]. 13 | int randomBetween(int from, int to) { 14 | if (from > to) throw new Exception('$from cannot be > $to'); 15 | var rand = new Random(); 16 | return ((to - from) * rand.nextDouble()).toInt() + from; 17 | } 18 | 19 | /// Generates a random string of [length] with characters 20 | /// between ascii [from] to [to]. 21 | /// Defaults to characters of ascii '!' to '~'. 22 | String randomString(int length, {int from: ASCII_START, int to: ASCII_END}) { 23 | return new String.fromCharCodes( 24 | new List.generate(length, (index) => randomBetween(from, to))); 25 | } 26 | 27 | /// Generates a random string of [length] with only numeric characters. 28 | String randomNumeric(int length) => 29 | randomString(length, from: NUMERIC_START, to: NUMERIC_END); 30 | 31 | /// Generates a random string of [length] with only alpha characters. 32 | String randomAlpha(int length) { 33 | var lowerAlphaLength = randomBetween(0, length); 34 | var upperAlphaLength = length - lowerAlphaLength; 35 | var lowerAlpha = randomString(lowerAlphaLength, 36 | from: LOWER_ALPHA_START, to: LOWER_ALPHA_END); 37 | var upperAlpha = randomString(upperAlphaLength, 38 | from: UPPER_ALPHA_START, to: UPPER_ALPHA_END); 39 | return randomMerge(lowerAlpha, upperAlpha); 40 | } 41 | 42 | /// Generates a random string of [length] with alpha-numeric characters. 43 | String randomAlphaNumeric(int length) { 44 | var alphaLength = randomBetween(0, length); 45 | var numericLength = length - alphaLength; 46 | var alpha = randomAlpha(alphaLength); 47 | var numeric = randomNumeric(numericLength); 48 | return randomMerge(alpha, numeric); 49 | } 50 | 51 | /// Merge [a] with [b] and scramble characters. 52 | String randomMerge(String a, String b) { 53 | List mergedCodeUnits = new List.from("$a$b".codeUnits); 54 | mergedCodeUnits.shuffle(); 55 | return new String.fromCharCodes(mergedCodeUnits); 56 | } 57 | -------------------------------------------------------------------------------- /lib/database/Database.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:io'; 3 | 4 | import 'package:cipherly/model/PasswordModel.dart'; 5 | import 'package:path/path.dart'; 6 | import 'package:path_provider/path_provider.dart'; 7 | import 'package:sqflite/sqflite.dart'; 8 | 9 | class DBProvider { 10 | DBProvider._(); 11 | static final DBProvider db = DBProvider._(); 12 | 13 | static Database _database; 14 | 15 | Future get database async { 16 | if (_database != null) return _database; 17 | 18 | // if _database is null we instantiate it 19 | _database = await initDB(); 20 | return _database; 21 | } 22 | 23 | initDB() async { 24 | Directory documentsDirectory = await getApplicationDocumentsDirectory(); 25 | String path = join(documentsDirectory.path, "TestDB.db"); 26 | return await openDatabase(path, version: 1, onOpen: (db) {}, 27 | onCreate: (Database db, int version) async { 28 | await db.execute("CREATE TABLE Passwords (" 29 | "id INTEGER PRIMARY KEY AUTOINCREMENT," 30 | "app_name TEXT," 31 | "icon TEXT," 32 | "color TEXT," 33 | "password TEXT," 34 | "user_name TEXT" 35 | ")"); 36 | }); 37 | } 38 | 39 | newPassword(Password password) async { 40 | final db = await database; 41 | var res = await db.insert("Passwords",password.toJson()); 42 | return res; 43 | } 44 | 45 | getPassword(int id) async { 46 | final db = await database; 47 | var res = await db.query("Passwords", where: "id = ?", whereArgs: [id]); 48 | return res.isNotEmpty ? Password.fromJson(res.first) : Null; 49 | } 50 | 51 | getAllPasswords() async { 52 | final db = await database; 53 | var res = await db.query("Passwords"); 54 | List list = 55 | res.isNotEmpty ? res.map((c) => Password.fromJson(c)).toList() : []; 56 | return list; 57 | } 58 | 59 | updatePassword(Password newClient) async { 60 | final db = await database; 61 | var res = await db.update("Passwords", newClient.toJson(), 62 | where: "id = ?", whereArgs: [newClient.id]); 63 | return res; 64 | } 65 | 66 | deletePassword(int id) async { 67 | final db = await database; 68 | db.delete("Passwords", where: "id = ?", whereArgs: [id]); 69 | } 70 | 71 | deleteAll() async { 72 | final db = await database; 73 | db.delete("Passwords"); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | pods_ary = [] 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) { |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | pods_ary.push({:name => podname, :path => podpath}); 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | } 32 | return pods_ary 33 | end 34 | 35 | target 'Runner' do 36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 37 | # referring to absolute paths on developers' machines. 38 | system('rm -rf .symlinks') 39 | system('mkdir -p .symlinks/plugins') 40 | 41 | # Flutter Pods 42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 43 | if generated_xcode_build_settings.empty? 44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 45 | end 46 | generated_xcode_build_settings.map { |p| 47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 48 | symlink = File.join('.symlinks', 'flutter') 49 | File.symlink(File.dirname(p[:path]), symlink) 50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 51 | end 52 | } 53 | 54 | # Plugin Pods 55 | plugin_pods = parse_KV_file('../.flutter-plugins') 56 | plugin_pods.map { |p| 57 | symlink = File.join('.symlinks', 'plugins', p[:name]) 58 | File.symlink(p[:path], symlink) 59 | pod p[:name], :path => File.join(symlink, 'ios') 60 | } 61 | end 62 | 63 | post_install do |installer| 64 | installer.pods_project.targets.each do |target| 65 | target.build_configurations.each do |config| 66 | config.build_settings['ENABLE_BITCODE'] = 'NO' 67 | end 68 | end 69 | end 70 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/pages/GreetingsPage.dart'; 2 | import 'package:cipherly/pages/PasswordHomepage.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_secure_storage/flutter_secure_storage.dart'; 5 | import 'package:shared_preferences/shared_preferences.dart'; 6 | import 'package:dynamic_theme/dynamic_theme.dart'; 7 | 8 | void main() { 9 | runApp(MyApp()); 10 | } 11 | 12 | class MyApp extends StatefulWidget { 13 | @override 14 | _MyAppState createState() => _MyAppState(); 15 | } 16 | 17 | class _MyAppState extends State { 18 | int launch = 0; 19 | bool loading = true; 20 | int primarycolorCode; 21 | Color primaryColor = Color(0xff5153FF); 22 | 23 | checkPrimaryColr() async { 24 | SharedPreferences prefs = await SharedPreferences.getInstance(); 25 | primarycolorCode = prefs.getInt('primaryColor') ?? 0; 26 | 27 | if (primarycolorCode != 0) { 28 | setState(() { 29 | primaryColor = Color(primarycolorCode); 30 | }); 31 | } 32 | } 33 | 34 | Future checkFirstSeen() async { 35 | SharedPreferences prefs = await SharedPreferences.getInstance(); 36 | launch = prefs.getInt("launch") ?? 0; 37 | 38 | final storage = new FlutterSecureStorage(); 39 | String masterPass = await storage.read(key: 'master') ?? ''; 40 | 41 | if (prefs.getInt('primaryColor') == null) { 42 | await prefs.setInt('primaryColor', 0); 43 | } 44 | 45 | if (launch == 0 && masterPass == '') { 46 | await prefs.setInt('launch', launch + 1); 47 | await prefs.setInt('primaryColor', 0); 48 | // await prefs.setBool('enableDarkTheme', false); 49 | } 50 | 51 | setState(() { 52 | loading = false; 53 | }); 54 | } 55 | 56 | @override 57 | void initState() { 58 | checkPrimaryColr(); 59 | checkFirstSeen(); 60 | super.initState(); 61 | } 62 | 63 | @override 64 | Widget build(BuildContext context) { 65 | checkPrimaryColr(); 66 | return DynamicTheme( 67 | defaultBrightness: Brightness.light, 68 | data: (brightness) => new ThemeData( 69 | fontFamily: "Title", 70 | primaryColor: primaryColor, 71 | accentColor: Color(0xff0029cb), 72 | // primaryColor: Color(0xff5153FF), 73 | // primaryColorDark: Color(0xff0029cb), 74 | brightness: brightness, 75 | ), 76 | themedWidgetBuilder: (context, theme) => MaterialApp( 77 | debugShowCheckedModeBanner: false, 78 | title: 'Cipherly', 79 | theme: theme, 80 | home: loading 81 | ? Center( 82 | child: CircularProgressIndicator(), 83 | ) 84 | : launch == 0 ? GreetingsPage() : PasswordHomepage(), 85 | ), 86 | ); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/pages/GreetingsPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/pages/SetMasterPassword.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class GreetingsPage extends StatefulWidget { 5 | @override 6 | _GreetingsPageState createState() => _GreetingsPageState(); 7 | } 8 | 9 | class _GreetingsPageState extends State { 10 | 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | Color primaryColor = Theme.of(context).primaryColor; 15 | var size = MediaQuery.of(context).size; 16 | 17 | return Scaffold( 18 | body: AnimatedContainer( 19 | duration: Duration(seconds: 3), 20 | child: Center( 21 | child: Column( 22 | mainAxisAlignment: MainAxisAlignment.center, 23 | children: [ 24 | Image.asset("assets/key.png",height: size.height*0.3,), 25 | SizedBox( 26 | height: 20, 27 | ), 28 | Padding( 29 | padding: const EdgeInsets.fromLTRB(24.0, 8, 24, 8), 30 | child: Text("Welcome to Cipherly!", 31 | textAlign: TextAlign.center, 32 | style: TextStyle(fontFamily: "Title", fontSize: 36)), 33 | ), 34 | Padding( 35 | padding: const EdgeInsets.fromLTRB(24.0, 8, 24, 8), 36 | child: Text( 37 | "Cipherly takes care of your sensitive password data using AES encryption.", 38 | textAlign: TextAlign.center, 39 | style: TextStyle( 40 | fontFamily: "Subtitle", 41 | fontSize: 18, 42 | // color: Colors.black54 43 | ), 44 | ), 45 | ), 46 | Padding( 47 | padding: const EdgeInsets.fromLTRB(24.0, 8, 24, 8), 48 | child: Text("Set your master password to get started!", 49 | textAlign: TextAlign.center, 50 | style: TextStyle(fontFamily: "Subtitle", fontSize: 24)), 51 | ), Padding( 52 | padding: const EdgeInsets.fromLTRB(24.0, 8, 24, 8), 53 | child: Text( 54 | "(You can change it afterwards)", 55 | textAlign: TextAlign.center, 56 | style: TextStyle( 57 | fontFamily: "Subtitle", 58 | fontSize: 18, 59 | // color: Colors.black54 60 | ), 61 | ), 62 | ),SizedBox( 63 | height: 20, 64 | ), 65 | SizedBox( 66 | height: 60, 67 | width: size.width * 0.7, 68 | child: MaterialButton( 69 | 70 | shape: RoundedRectangleBorder( 71 | borderRadius: BorderRadius.circular(32) 72 | ), 73 | onPressed: () { 74 | Navigator.pushReplacement( 75 | context, 76 | MaterialPageRoute( 77 | builder: (BuildContext context) => 78 | SetMasterPassword())); 79 | }, 80 | color: primaryColor, 81 | child: Text("Get Started", 82 | style: TextStyle(color: Colors.white))), 83 | ) 84 | ], 85 | ), 86 | ), 87 | ), 88 | ); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: cipherly 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.2.2 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | local_auth: ^0.4.0+1 #^0.5.2+2 23 | flutter_secure_storage: ^3.2.1+1 24 | password_strength: ^0.1.2 25 | 26 | # The following adds the Cupertino Icons font to your application. 27 | # Use with the CupertinoIcons class for iOS style icons. 28 | cupertino_icons: ^0.1.2 29 | dynamic_theme: ^1.0.0 30 | # provider: any 31 | sqflite: any 32 | # get_it: any 33 | encrypt: 34 | path_provider: ^1.1.0 35 | shared_preferences: ^0.5.2+1 36 | flutter_material_color_picker: ^1.0.0 37 | 38 | 39 | 40 | dev_dependencies: 41 | flutter_launcher_icons: "^0.7.2" 42 | flutter_test: 43 | sdk: flutter 44 | 45 | flutter_icons: 46 | ios: true 47 | android: true 48 | image_path: "assets/key.png" 49 | 50 | 51 | # For information on the generic Dart part of this file, see the 52 | # following page: https://www.dartlang.org/tools/pub/pubspec 53 | 54 | # The following section is specific to Flutter. 55 | flutter: 56 | 57 | # The following line ensures that the Material Icons font is 58 | # included with your application, so that you can use the icons in 59 | # the material Icons class. 60 | uses-material-design: true 61 | 62 | # To add assets to your application, add an assets section, like this: 63 | assets: 64 | - assets/key.png 65 | # - images/a_dot_ham.jpeg 66 | 67 | # An image asset can refer to one or more resolution-specific "variants", see 68 | # https://flutter.dev/assets-and-images/#resolution-aware. 69 | 70 | # For details regarding adding assets from package dependencies, see 71 | # https://flutter.dev/assets-and-images/#from-packages 72 | 73 | # To add custom fonts to your application, add a fonts section here, 74 | # in this "flutter" section. Each entry in this list should have a 75 | # "family" key with the font family name, and a "fonts" key with a 76 | # list giving the asset and other descriptors for the font. For 77 | # example: 78 | fonts: 79 | - family: GoogleSans 80 | fonts: 81 | - asset: assets/fonts/GoogleSansRegular.ttf 82 | - family: Title 83 | fonts: 84 | - asset: assets/fonts/Title.otf 85 | - family: Subtitle 86 | fonts: 87 | - asset: assets/fonts/Subtitle.otf 88 | # - asset: fonts/Schyler-Italic.ttf 89 | # style: italic 90 | # - family: Trajan Pro 91 | # fonts: 92 | # - asset: fonts/TrajanPro.ttf 93 | # - asset: fonts/TrajanPro_Bold.ttf 94 | # weight: 700 95 | # 96 | # For details regarding fonts from package dependencies, 97 | # see https://flutter.dev/custom-fonts/#from-packages 98 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lib/pages/SettingsPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/pages/SetMasterPassword.dart'; 2 | import 'package:dynamic_theme/dynamic_theme.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_material_color_picker/flutter_material_color_picker.dart'; 5 | import 'package:shared_preferences/shared_preferences.dart'; 6 | 7 | class SettingsPage extends StatefulWidget { 8 | @override 9 | _SettingsPageState createState() => _SettingsPageState(); 10 | } 11 | 12 | class _SettingsPageState extends State { 13 | SharedPreferences prefs; 14 | Color selectedColor = Colors.red; 15 | 16 | openSharedPreferences() async { 17 | prefs = await SharedPreferences.getInstance(); 18 | setState(() { 19 | if (Color(prefs.getInt('primaryColor')) == null) { 20 | selectedColor = Color(0xff5153FF); 21 | } else { 22 | selectedColor = Color(prefs.getInt('primaryColor')); 23 | } 24 | }); 25 | } 26 | 27 | @override 28 | void initState() { 29 | openSharedPreferences(); 30 | super.initState(); 31 | } 32 | 33 | var scaffoldKey = GlobalKey(); 34 | Color pickedColor; 35 | 36 | @override 37 | Widget build(BuildContext context) { 38 | var size = MediaQuery.of(context).size; 39 | Color primaryColor = Theme.of(context).primaryColor; 40 | 41 | return Scaffold( 42 | key: scaffoldKey, 43 | body: Column( 44 | mainAxisAlignment: MainAxisAlignment.start, 45 | crossAxisAlignment: CrossAxisAlignment.start, 46 | children: [ 47 | Padding( 48 | padding: const EdgeInsets.all(16.0), 49 | child: Container( 50 | margin: EdgeInsets.only(top: size.height * 0.05), 51 | child: Text("Settings", 52 | style: TextStyle( 53 | fontFamily: "Title", 54 | fontSize: 32, 55 | color: primaryColor))), 56 | ), 57 | InkWell( 58 | onTap: () { 59 | Navigator.push( 60 | context, 61 | MaterialPageRoute( 62 | builder: (BuildContext context) => SetMasterPassword())); 63 | }, 64 | child: ListTile( 65 | title: Text( 66 | "Master Password", 67 | style: TextStyle( 68 | fontFamily: 'Title', 69 | ), 70 | ), 71 | subtitle: Text( 72 | "Change your Master Password", 73 | style: TextStyle( 74 | fontFamily: 'Subtitle', 75 | ), 76 | ), 77 | ), 78 | ), 79 | Column( 80 | children: [ 81 | ListTile( 82 | title: Text( 83 | "Accent Color", 84 | style: TextStyle( 85 | fontFamily: 'Title', 86 | ), 87 | ), 88 | subtitle: Text( 89 | "Change Accent Color", 90 | style: TextStyle( 91 | fontFamily: 'Subtitle', 92 | ), 93 | ), 94 | ), 95 | MaterialColorPicker( 96 | onColorChange: (Color color) { 97 | pickedColor = color; 98 | changeColor(color); 99 | setState(() { 100 | selectedColor = color; 101 | }); 102 | }, 103 | circleSize: 60, 104 | selectedColor: selectedColor, 105 | ), 106 | ], 107 | ) 108 | ], 109 | ), 110 | ); 111 | } 112 | 113 | void changeColor(Color color) { 114 | // SharedPreferences prefs = await SharedPreferences.getInstance(); 115 | prefs.setInt('primaryColor', color.value); 116 | 117 | DynamicTheme.of(context).setThemeData(new ThemeData().copyWith( 118 | primaryColor: color, 119 | )); 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /lib/pages/SetMasterPassword.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/pages/PasswordHomepage.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:local_auth/local_auth.dart'; 4 | import 'package:shared_preferences/shared_preferences.dart'; 5 | import 'package:flutter_secure_storage/flutter_secure_storage.dart'; 6 | 7 | class SetMasterPassword extends StatefulWidget { 8 | @override 9 | _SetMasterPasswordState createState() => _SetMasterPasswordState(); 10 | } 11 | 12 | class _SetMasterPasswordState extends State { 13 | TextEditingController masterPassController = TextEditingController(); 14 | 15 | Future getMasterPass() async { 16 | 17 | final storage = new FlutterSecureStorage(); 18 | String masterPass = await storage.read(key: 'master') ?? ''; 19 | masterPassController.text = masterPass; 20 | 21 | } 22 | 23 | saveMasterPass(String masterPass) async{ 24 | final storage = new FlutterSecureStorage(); 25 | 26 | await storage.write(key: 'master', value: masterPass); 27 | } 28 | 29 | authenticate() async { 30 | var localAuth = LocalAuthentication(); 31 | bool didAuthenticate = await localAuth.authenticateWithBiometrics( 32 | localizedReason: 'Please authenticate to change master password', 33 | stickyAuth: true); 34 | 35 | if (!didAuthenticate) { 36 | Navigator.pop(context); 37 | } 38 | 39 | print(didAuthenticate); 40 | } 41 | 42 | @override 43 | void initState() { 44 | super.initState(); 45 | authenticate(); 46 | getMasterPass(); 47 | } 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | var size = MediaQuery.of(context).size; 52 | Color primaryColor = Theme.of(context).primaryColor; 53 | 54 | return Scaffold( 55 | body: Column( 56 | mainAxisAlignment: MainAxisAlignment.start, 57 | crossAxisAlignment: CrossAxisAlignment.start, 58 | children: [ 59 | Padding( 60 | padding: const EdgeInsets.all(16.0), 61 | child: Container( 62 | margin: EdgeInsets.only(top: size.height * 0.05), 63 | child: Text("Master Password", 64 | style: TextStyle( 65 | fontFamily: "Title", 66 | fontSize: 32, 67 | color: primaryColor 68 | ))), 69 | ), 70 | Padding( 71 | padding: const EdgeInsets.all(16.0), 72 | child: Text( 73 | "Set Master Passwords for your all passwords. Keep your Master Password safe with you. This password will be used to unlock your encrypted passwords.", 74 | style: TextStyle( 75 | fontSize: 16, 76 | // color: Colors.black54, 77 | fontStyle: FontStyle.italic, 78 | fontFamily: "Subtitle"))), 79 | Expanded( 80 | child: Padding( 81 | padding: const EdgeInsets.all(16.0), 82 | child: TextField( 83 | obscureText: true, 84 | maxLength: 32, 85 | decoration: InputDecoration( 86 | labelText: "Master Pass", 87 | labelStyle: TextStyle(fontFamily: "Subtitle"), 88 | border: OutlineInputBorder( 89 | borderRadius: BorderRadius.circular(16))), 90 | controller: masterPassController, 91 | ), 92 | ), 93 | ), 94 | Padding( 95 | padding: const EdgeInsets.all(16.0), 96 | child: Center( 97 | child: SizedBox( 98 | width: size.width * 0.7, 99 | height: 60, 100 | child: MaterialButton( 101 | shape: RoundedRectangleBorder( 102 | borderRadius: BorderRadius.circular(32)), 103 | color: primaryColor, 104 | child: Text( 105 | "CONFIRM", 106 | style: TextStyle(color: Colors.white, fontFamily: "Title"), 107 | ), 108 | onPressed: () async { 109 | if (masterPassController.text.isNotEmpty) { 110 | saveMasterPass(masterPassController.text.trim()); 111 | Navigator.pushReplacement( 112 | context, 113 | MaterialPageRoute( 114 | builder: (BuildContext context) => 115 | PasswordHomepage())); 116 | } else { 117 | showDialog( 118 | context: context, 119 | builder: (context) { 120 | return AlertDialog( 121 | title: Text( 122 | "Error!", 123 | style: TextStyle(fontFamily: "Title"), 124 | ), 125 | content: Text( 126 | "Please enter valid Master Password.", 127 | style: TextStyle(fontFamily: "Subtitle"), 128 | ), 129 | actions: [ 130 | FlatButton( 131 | child: Text("CLOSE"), 132 | onPressed: () { 133 | Navigator.of(context).pop(); 134 | }, 135 | ) 136 | ], 137 | ); 138 | }); 139 | } 140 | }, 141 | ), 142 | ), 143 | ), 144 | ), 145 | ], 146 | ), 147 | ); 148 | } 149 | } 150 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.9" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.1" 18 | asn1lib: 19 | dependency: transitive 20 | description: 21 | name: asn1lib 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "0.5.8" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.1.0" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.0.4" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.2" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.14.11" 53 | convert: 54 | dependency: transitive 55 | description: 56 | name: convert 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.1" 60 | crypto: 61 | dependency: transitive 62 | description: 63 | name: crypto 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.0.6" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.2" 74 | dynamic_theme: 75 | dependency: "direct main" 76 | description: 77 | name: dynamic_theme 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.0.1" 81 | encrypt: 82 | dependency: "direct main" 83 | description: 84 | name: encrypt 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "3.0.0" 88 | flutter: 89 | dependency: "direct main" 90 | description: flutter 91 | source: sdk 92 | version: "0.0.0" 93 | flutter_launcher_icons: 94 | dependency: "direct dev" 95 | description: 96 | name: flutter_launcher_icons 97 | url: "https://pub.dartlang.org" 98 | source: hosted 99 | version: "0.7.2" 100 | flutter_material_color_picker: 101 | dependency: "direct main" 102 | description: 103 | name: flutter_material_color_picker 104 | url: "https://pub.dartlang.org" 105 | source: hosted 106 | version: "1.0.0" 107 | flutter_secure_storage: 108 | dependency: "direct main" 109 | description: 110 | name: flutter_secure_storage 111 | url: "https://pub.dartlang.org" 112 | source: hosted 113 | version: "3.2.1+1" 114 | flutter_test: 115 | dependency: "direct dev" 116 | description: flutter 117 | source: sdk 118 | version: "0.0.0" 119 | image: 120 | dependency: transitive 121 | description: 122 | name: image 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "2.1.1" 126 | intl: 127 | dependency: transitive 128 | description: 129 | name: intl 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.15.8" 133 | local_auth: 134 | dependency: "direct main" 135 | description: 136 | name: local_auth 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "0.4.0+1" 140 | matcher: 141 | dependency: transitive 142 | description: 143 | name: matcher 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.12.5" 147 | meta: 148 | dependency: transitive 149 | description: 150 | name: meta 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "1.1.6" 154 | password_strength: 155 | dependency: "direct main" 156 | description: 157 | name: password_strength 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.1.2" 161 | path: 162 | dependency: transitive 163 | description: 164 | name: path 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "1.6.2" 168 | path_provider: 169 | dependency: "direct main" 170 | description: 171 | name: path_provider 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "1.1.0" 175 | pedantic: 176 | dependency: transitive 177 | description: 178 | name: pedantic 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "1.5.0" 182 | petitparser: 183 | dependency: transitive 184 | description: 185 | name: petitparser 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "2.2.1" 189 | pointycastle: 190 | dependency: transitive 191 | description: 192 | name: pointycastle 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.0.1" 196 | quiver: 197 | dependency: transitive 198 | description: 199 | name: quiver 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "2.0.2" 203 | shared_preferences: 204 | dependency: "direct main" 205 | description: 206 | name: shared_preferences 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "0.5.2+1" 210 | sky_engine: 211 | dependency: transitive 212 | description: flutter 213 | source: sdk 214 | version: "0.0.99" 215 | source_span: 216 | dependency: transitive 217 | description: 218 | name: source_span 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "1.5.5" 222 | sqflite: 223 | dependency: "direct main" 224 | description: 225 | name: sqflite 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.1.5" 229 | stack_trace: 230 | dependency: transitive 231 | description: 232 | name: stack_trace 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "1.9.3" 236 | stream_channel: 237 | dependency: transitive 238 | description: 239 | name: stream_channel 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "2.0.0" 243 | string_scanner: 244 | dependency: transitive 245 | description: 246 | name: string_scanner 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "1.0.4" 250 | synchronized: 251 | dependency: transitive 252 | description: 253 | name: synchronized 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.1.0" 257 | term_glyph: 258 | dependency: transitive 259 | description: 260 | name: term_glyph 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "1.1.0" 264 | test_api: 265 | dependency: transitive 266 | description: 267 | name: test_api 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "0.2.4" 271 | typed_data: 272 | dependency: transitive 273 | description: 274 | name: typed_data 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.1.6" 278 | vector_math: 279 | dependency: transitive 280 | description: 281 | name: vector_math 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "2.0.8" 285 | xml: 286 | dependency: transitive 287 | description: 288 | name: xml 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "3.4.1" 292 | yaml: 293 | dependency: transitive 294 | description: 295 | name: yaml 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "2.1.15" 299 | sdks: 300 | dart: ">=2.2.2 <3.0.0" 301 | flutter: ">=1.2.1 <2.0.0" 302 | -------------------------------------------------------------------------------- /lib/pages/PasswordHomepage.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/bloc/PasswordBloc.dart'; 2 | import 'package:cipherly/database/Database.dart'; 3 | import 'package:cipherly/model/PasswordModel.dart'; 4 | import 'package:cipherly/pages/ViewPasswordPage.dart'; 5 | import 'package:dynamic_theme/dynamic_theme.dart'; 6 | import 'package:flutter/material.dart'; 7 | 8 | import 'AddPasswordPage.dart'; 9 | import 'SettingsPage.dart'; 10 | 11 | class PasswordHomepage extends StatefulWidget { 12 | @override 13 | _PasswordHomepageState createState() => _PasswordHomepageState(); 14 | 15 | Brightness brigntness = Brightness.light; 16 | 17 | PasswordHomepage({this.brigntness}); 18 | } 19 | 20 | class _PasswordHomepageState extends State { 21 | int pickedIcon; 22 | 23 | List icons = [ 24 | Icon(Icons.account_circle, size: 28, color: Colors.white), 25 | Icon(Icons.add, size: 28, color: Colors.white), 26 | Icon(Icons.access_alarms, size: 28, color: Colors.white), 27 | Icon(Icons.ac_unit, size: 28, color: Colors.white), 28 | Icon(Icons.accessible, size: 28, color: Colors.white), 29 | Icon(Icons.account_balance, size: 28, color: Colors.white), 30 | Icon(Icons.add_circle_outline, size: 28, color: Colors.white), 31 | Icon(Icons.airline_seat_individual_suite, size: 28, color: Colors.white), 32 | Icon(Icons.arrow_drop_down_circle, size: 28, color: Colors.white), 33 | Icon(Icons.assessment, size: 28, color: Colors.white), 34 | ]; 35 | 36 | List iconNames = [ 37 | "Icon 1", 38 | "Icon 2", 39 | "Icon 3", 40 | "Icon 4", 41 | "Icon 5", 42 | "Icon 6", 43 | "Icon 7", 44 | "Icon 8", 45 | "Icon 9", 46 | "Icon 10", 47 | ]; 48 | 49 | final bloc = PasswordBloc(); 50 | 51 | @override 52 | void dispose() { 53 | bloc.dispose(); 54 | super.dispose(); 55 | } 56 | 57 | @override 58 | Widget build(BuildContext context) { 59 | var size = MediaQuery.of(context).size; 60 | Color primaryColor = Theme.of(context).primaryColor; 61 | 62 | // print(iconNames.indexOf('Icon 10')); 63 | 64 | void changeBrightness() { 65 | DynamicTheme.of(context).setBrightness( 66 | Theme.of(context).brightness == Brightness.dark 67 | ? Brightness.light 68 | : Brightness.dark); 69 | } 70 | 71 | return Scaffold( 72 | body: Column( 73 | crossAxisAlignment: CrossAxisAlignment.start, 74 | children: [ 75 | Padding( 76 | padding: const EdgeInsets.fromLTRB(16, 16, 16, 0), 77 | child: Container( 78 | margin: EdgeInsets.only(top: size.height * 0.05), 79 | child: Row( 80 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 81 | children: [ 82 | Text( 83 | "Cipherly", 84 | style: TextStyle( 85 | fontFamily: "Title", 86 | fontSize: 32, 87 | color: primaryColor), 88 | ), 89 | Row( 90 | children: [ 91 | IconButton( 92 | icon: Icon( 93 | Icons.wb_sunny, 94 | color: primaryColor, 95 | ), 96 | onPressed: () { 97 | changeBrightness(); 98 | }, 99 | ), 100 | IconButton( 101 | icon: Icon( 102 | Icons.settings, 103 | color: primaryColor, 104 | ), 105 | onPressed: () { 106 | Navigator.push( 107 | context, 108 | MaterialPageRoute( 109 | builder: (BuildContext context) => 110 | SettingsPage())); 111 | }, 112 | ), 113 | ], 114 | ), 115 | ], 116 | )), 117 | ), 118 | Expanded( 119 | child: StreamBuilder>( 120 | stream: bloc.passwords, 121 | builder: (BuildContext context, AsyncSnapshot snapshot) { 122 | if (snapshot.hasData) { 123 | if (snapshot.data.length > 0) { 124 | return ListView.builder( 125 | itemCount: snapshot.data.length, 126 | itemBuilder: (BuildContext context, int index) { 127 | Password password = snapshot.data[index]; 128 | int i = 0; 129 | i = iconNames.indexOf(password.icon); 130 | Color color = hexToColor(password.color); 131 | return Dismissible( 132 | key: ObjectKey(password.id), 133 | onDismissed: (direction) { 134 | var item = password; 135 | //To delete 136 | DBProvider.db.deletePassword(item.id); 137 | setState(() { 138 | snapshot.data.removeAt(index); 139 | }); 140 | //To show a snackbar with the UNDO button 141 | Scaffold.of(context).showSnackBar(SnackBar( 142 | content: Text("Password deleted"), 143 | action: SnackBarAction( 144 | label: "UNDO", 145 | onPressed: () { 146 | DBProvider.db.newPassword(item); 147 | setState(() { 148 | snapshot.data.insert(index, item); 149 | }); 150 | }))); 151 | }, 152 | child: InkWell( 153 | onTap: () { 154 | Navigator.push( 155 | context, 156 | MaterialPageRoute( 157 | builder: (BuildContext context) => 158 | ViewPassword( 159 | password: password, 160 | ))); 161 | }, 162 | child: ListTile( 163 | title: Text( 164 | password.appName, 165 | style: TextStyle( 166 | fontFamily: 'Title', 167 | ), 168 | ), 169 | leading: Container( 170 | height: 48, 171 | width: 48, 172 | child: CircleAvatar( 173 | backgroundColor: color, child: icons[i])), 174 | subtitle: password.userName != "" 175 | ? Text( 176 | password.userName, 177 | style: TextStyle( 178 | fontFamily: 'Subtitle', 179 | ), 180 | ) 181 | : Text( 182 | "No username specified", 183 | style: TextStyle( 184 | fontFamily: 'Subtitle', 185 | ), 186 | ), 187 | ), 188 | ), 189 | ); 190 | }, 191 | ); 192 | } else { 193 | return Center( 194 | child: Text( 195 | "No Passwords Saved. \nClick \"+\" button to add a password", 196 | textAlign: TextAlign.center, 197 | // style: TextStyle(color: Colors.black54), 198 | ), 199 | ); 200 | } 201 | } else { 202 | return Center(child: CircularProgressIndicator()); 203 | } 204 | }, 205 | ), 206 | ), 207 | ], 208 | ), 209 | floatingActionButton: FloatingActionButton( 210 | backgroundColor: primaryColor, 211 | child: Icon(Icons.add), 212 | onPressed: () async { 213 | Navigator.push( 214 | context, 215 | MaterialPageRoute( 216 | builder: (BuildContext context) => AddPassword())); 217 | }, 218 | ), 219 | ); 220 | } 221 | 222 | Color hexToColor(String code) { 223 | return new Color(int.parse(code.substring(1, 9), radix: 16) + 0xFF000000); 224 | } 225 | } 226 | -------------------------------------------------------------------------------- /lib/pages/ViewPasswordPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/model/PasswordModel.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:encrypt/encrypt.dart' as encrypt; 4 | import 'package:flutter_secure_storage/flutter_secure_storage.dart'; 5 | import 'package:local_auth/local_auth.dart'; 6 | import 'package:sqflite/utils/utils.dart'; 7 | 8 | import 'PasswordHomepage.dart'; 9 | 10 | class ViewPassword extends StatefulWidget { 11 | final Password password; 12 | 13 | const ViewPassword({Key key, this.password}) : super(key: key); 14 | 15 | @override 16 | _ViewPasswordState createState() => _ViewPasswordState(password); 17 | } 18 | 19 | class _ViewPasswordState extends State { 20 | final Password password; 21 | _ViewPasswordState(this.password); 22 | 23 | TextEditingController masterPassController = TextEditingController(); 24 | 25 | var scaffoldKey = GlobalKey(); 26 | 27 | List icons = [ 28 | Icon(Icons.account_circle, size: 64, color: Colors.white), 29 | Icon(Icons.add, size: 64, color: Colors.white), 30 | Icon(Icons.access_alarms, size: 64, color: Colors.white), 31 | Icon(Icons.ac_unit, size: 64, color: Colors.white), 32 | Icon(Icons.accessible, size: 64, color: Colors.white), 33 | Icon(Icons.account_balance, size: 64, color: Colors.white), 34 | Icon(Icons.add_circle_outline, size: 64, color: Colors.white), 35 | Icon(Icons.airline_seat_individual_suite, size: 64, color: Colors.white), 36 | Icon(Icons.arrow_drop_down_circle, size: 64, color: Colors.white), 37 | Icon(Icons.assessment, size: 64, color: Colors.white), 38 | ]; 39 | 40 | List iconNames = [ 41 | "Icon 1", 42 | "Icon 2", 43 | "Icon 3", 44 | "Icon 4", 45 | "Icon 5", 46 | "Icon 6", 47 | "Icon 7", 48 | "Icon 8", 49 | "Icon 9", 50 | "Icon 10", 51 | ]; 52 | bool decrypt = false; 53 | String decrypted = ""; 54 | Color color; 55 | int index; 56 | Color hexToColor(String code) { 57 | return new Color(int.parse(code.substring(1, 9), radix: 16) + 0xFF000000); 58 | } 59 | 60 | bool didAuthenticate = false; 61 | 62 | authenticate() async { 63 | var localAuth = LocalAuthentication(); 64 | didAuthenticate = await localAuth.authenticateWithBiometrics( 65 | localizedReason: 'Please authenticate to view password', 66 | stickyAuth: true); 67 | } 68 | 69 | Future getMasterPass() async { 70 | final storage = new FlutterSecureStorage(); 71 | String masterPass = await storage.read(key: 'master') ?? ''; 72 | return masterPass; 73 | } 74 | 75 | @override 76 | void initState() { 77 | print(password.color); 78 | color = hexToColor(password.color); 79 | index = iconNames.indexOf(password.icon); 80 | authenticate(); 81 | super.initState(); 82 | } 83 | 84 | @override 85 | Widget build(BuildContext context) { 86 | var size = MediaQuery.of(context).size; 87 | Color primaryColor = Theme.of(context).primaryColor; 88 | 89 | return Scaffold( 90 | key: scaffoldKey, 91 | // backgroundColor: Colors.white, 92 | body: Column( 93 | mainAxisAlignment: MainAxisAlignment.start, 94 | crossAxisAlignment: CrossAxisAlignment.start, 95 | mainAxisSize: MainAxisSize.min, 96 | children: [ 97 | Container( 98 | height: size.height * 0.3, 99 | width: double.infinity, 100 | decoration: BoxDecoration( 101 | color: color, 102 | borderRadius: BorderRadius.only( 103 | bottomLeft: Radius.circular(30), 104 | bottomRight: Radius.circular(30))), 105 | child: Center( 106 | child: Column( 107 | mainAxisAlignment: MainAxisAlignment.center, 108 | crossAxisAlignment: CrossAxisAlignment.center, 109 | children: [ 110 | icons[index], 111 | SizedBox( 112 | height: 12, 113 | ), 114 | Text(password.appName, 115 | style: TextStyle( 116 | fontFamily: "Title", 117 | fontSize: 32, 118 | color: Colors.white)), 119 | ], 120 | ), 121 | )), 122 | Padding( 123 | padding: const EdgeInsets.all(8.0), 124 | child: Column( 125 | crossAxisAlignment: CrossAxisAlignment.start, 126 | mainAxisAlignment: MainAxisAlignment.start, 127 | children: [ 128 | Padding( 129 | padding: const EdgeInsets.all(8.0), 130 | child: Text( 131 | "Username", 132 | style: TextStyle(fontFamily: 'Title', fontSize: 20), 133 | ), 134 | ), 135 | Padding( 136 | padding: const EdgeInsets.fromLTRB(8.0, 0, 8, 8), 137 | child: Text( 138 | password.userName, 139 | style: TextStyle( 140 | fontFamily: 'Subtitle', 141 | fontSize: 20, 142 | // color: Colors.black54 143 | ), 144 | ), 145 | ), 146 | Row( 147 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 148 | children: [ 149 | Column( 150 | mainAxisAlignment: MainAxisAlignment.start, 151 | crossAxisAlignment: CrossAxisAlignment.start, 152 | children: [ 153 | Padding( 154 | padding: const EdgeInsets.all(8.0), 155 | child: Text( 156 | "Password", 157 | style: TextStyle(fontFamily: 'Title', fontSize: 20), 158 | ), 159 | ), 160 | Padding( 161 | padding: const EdgeInsets.fromLTRB(8.0, 0, 8, 8), 162 | child: Text( 163 | decrypt ? decrypted : password.password, 164 | style: TextStyle( 165 | fontFamily: 'Subtitle', 166 | fontSize: 20, 167 | // color: Colors.black54 168 | ), 169 | ), 170 | ), 171 | ], 172 | ), 173 | IconButton( 174 | onPressed: () async { 175 | if (!decrypt && !didAuthenticate) { 176 | buildShowDialogBox(context); 177 | } else if (!decrypt && didAuthenticate) { 178 | String masterPass = await getMasterPass(); 179 | decryptPass(password.password, masterPass); 180 | } else if (decrypt) { 181 | setState(() { 182 | decrypt = !decrypt; 183 | }); 184 | } 185 | }, 186 | icon: decrypt ? Icon(Icons.lock_open) : Icon(Icons.lock), 187 | ) 188 | ], 189 | ), 190 | ], 191 | ), 192 | ), 193 | ], 194 | ), 195 | ); 196 | } 197 | 198 | Future buildShowDialogBox(BuildContext context) { 199 | return showDialog( 200 | context: context, 201 | builder: (context) { 202 | return AlertDialog( 203 | title: Text("Enter Master Password"), 204 | content: Column( 205 | mainAxisSize: MainAxisSize.min, 206 | children: [ 207 | Text( 208 | "To decrypt the password enter your master password:", 209 | style: TextStyle(fontFamily: 'Subtitle'), 210 | ), 211 | Padding( 212 | padding: const EdgeInsets.all(8.0), 213 | child: TextField( 214 | obscureText: true, 215 | maxLength: 32, 216 | decoration: InputDecoration( 217 | hintText: "Master Pass", 218 | hintStyle: TextStyle(fontFamily: "Subtitle"), 219 | border: OutlineInputBorder( 220 | borderRadius: BorderRadius.circular(16))), 221 | controller: masterPassController, 222 | ), 223 | ), 224 | ], 225 | ), 226 | actions: [ 227 | FlatButton( 228 | onPressed: () { 229 | Navigator.of(context).pop(); 230 | decryptPass( 231 | password.password, masterPassController.text.trim()); 232 | masterPassController.clear(); 233 | if (!decrypt) { 234 | final snackBar = SnackBar( 235 | content: Text( 236 | 'Wrong Master Password', 237 | style: TextStyle(fontFamily: "Subtitle"), 238 | ), 239 | ); 240 | scaffoldKey.currentState.showSnackBar(snackBar); 241 | } 242 | }, 243 | child: Text("DONE"), 244 | ) 245 | ], 246 | ); 247 | }, 248 | ); 249 | } 250 | 251 | decryptPass(String encryptedPass, String masterPass) { 252 | String keyString = masterPass; 253 | if (keyString.length < 32) { 254 | int count = 32 - keyString.length; 255 | for (var i = 0; i < count; i++) { 256 | keyString += "."; 257 | } 258 | } 259 | 260 | final iv = encrypt.IV.fromLength(16); 261 | final key = encrypt.Key.fromUtf8(keyString); 262 | 263 | try { 264 | final encrypter = encrypt.Encrypter(encrypt.AES(key)); 265 | final d = encrypter.decrypt64(encryptedPass, iv: iv); 266 | setState(() { 267 | decrypted = d; 268 | decrypt = true; 269 | }); 270 | } catch (exception) { 271 | setState(() { 272 | decrypted = "Wrong Master Password"; 273 | }); 274 | } 275 | } 276 | } 277 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /lib/pages/AddPasswordPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:cipherly/database/Database.dart'; 2 | import 'package:cipherly/model/PasswordModel.dart'; 3 | import 'package:cipherly/pages/PasswordHomepage.dart'; 4 | import 'package:cipherly/random_string.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:encrypt/encrypt.dart' as encrypt; 7 | import 'package:flutter_secure_storage/flutter_secure_storage.dart'; 8 | import 'package:flutter_material_color_picker/flutter_material_color_picker.dart'; 9 | import 'package:local_auth/local_auth.dart'; 10 | import 'package:local_auth/error_codes.dart' as auth_error; 11 | import 'package:flutter/services.dart'; 12 | import 'package:password_strength/password_strength.dart'; 13 | 14 | class AddPassword extends StatefulWidget { 15 | AddPassword({Key key}) : super(key: key); 16 | 17 | _AddPasswordState createState() => _AddPasswordState(); 18 | } 19 | 20 | class _AddPasswordState extends State { 21 | final _formKey = GlobalKey(); 22 | 23 | TextEditingController passwordController = TextEditingController(); 24 | TextEditingController appNameController = TextEditingController(); 25 | TextEditingController userNameController = TextEditingController(); 26 | 27 | Color pickedColor; 28 | var localAuth = LocalAuthentication(); 29 | 30 | encrypt.Encrypted encrypted; 31 | String keyString = ""; 32 | String encryptedString = ""; 33 | String decryptedString = ""; 34 | String masterPassString = ""; 35 | int pickedIcon; 36 | 37 | List icons = [ 38 | Icon(Icons.account_circle, size: 28, color: Colors.white), 39 | Icon(Icons.add, size: 28, color: Colors.white), 40 | Icon(Icons.access_alarms, size: 28, color: Colors.white), 41 | Icon(Icons.ac_unit, size: 28, color: Colors.white), 42 | Icon(Icons.accessible, size: 28, color: Colors.white), 43 | Icon(Icons.account_balance, size: 28, color: Colors.white), 44 | Icon(Icons.add_circle_outline, size: 28, color: Colors.white), 45 | Icon(Icons.airline_seat_individual_suite, size: 28, color: Colors.white), 46 | Icon(Icons.arrow_drop_down_circle, size: 28, color: Colors.white), 47 | Icon(Icons.assessment, size: 28, color: Colors.white), 48 | ]; 49 | 50 | List iconNames = [ 51 | "Icon 1", 52 | "Icon 2", 53 | "Icon 3", 54 | "Icon 4", 55 | "Icon 5", 56 | "Icon 6", 57 | "Icon 7", 58 | "Icon 8", 59 | "Icon 9", 60 | "Icon 10", 61 | ]; 62 | 63 | List colors = [ 64 | Colors.red, 65 | // Color(0xffd5563a), 66 | Color(0xffcf5a3b), 67 | // Color(0xffca5d3c), 68 | // Color(0xffc6603d), 69 | // Color(0xffc0643d), 70 | Color(0xffba673e), 71 | // Color(0xffb66a3f), 72 | // Color(0xffb36c3f), 73 | // Color(0xffaf6e40), 74 | Color(0xffa87341), 75 | // Color(0xffa47642), 76 | Color(0xffa07842), 77 | // Color(0xff9b7b43), 78 | // Color(0xff967f44), 79 | // Color(0xff908245), 80 | Color(0xff8b8646), 81 | // Color(0xff858a47), 82 | Color(0xff808d47), 83 | // Color(0xff799249), 84 | // Color(0xff769349), 85 | // Color(0xff72964a), 86 | Color(0xff6d994a), 87 | // Color(0xff6c9a4a), 88 | // Color(0xff659e4c), 89 | // Color(0xff639f4c), 90 | Color(0xff5ea34d), 91 | // Color(0xff5ba44d), 92 | Color(0xff58a64e), 93 | // Color(0xff53aa4e), 94 | Colors.green 95 | ]; 96 | 97 | // Future getMasterPass() async { 98 | // SharedPreferences prefs = await SharedPreferences.getInstance(); 99 | // String masterPass = prefs.getString('master') ?? ""; 100 | // masterPassString = masterPass; 101 | // } 102 | 103 | Future getMasterPass() async { 104 | final storage = new FlutterSecureStorage(); 105 | String masterPass = await storage.read(key: 'master') ?? ''; 106 | masterPassString = masterPass; 107 | } 108 | 109 | authenticate() async { 110 | try { 111 | var localAuth = LocalAuthentication(); 112 | print(await localAuth.getAvailableBiometrics()); 113 | bool didAuthenticate = await localAuth.authenticateWithBiometrics( 114 | localizedReason: 'Please authenticate to add new password', 115 | ); 116 | 117 | print(didAuthenticate); 118 | 119 | if (didAuthenticate == false) { 120 | Navigator.pushAndRemoveUntil( 121 | context, 122 | MaterialPageRoute( 123 | builder: (BuildContext context) => PasswordHomepage()), 124 | (Route route) => false); 125 | } 126 | } on PlatformException catch (e) { 127 | if (e.code == auth_error.notAvailable) { 128 | // Handle this exception here. 129 | } 130 | } 131 | } 132 | 133 | double passwordStrength = 0.0; 134 | Color passwordStrengthBarColor = Colors.red; 135 | bool obscureText = true; 136 | String show_hide = 'Show Password'; 137 | var scaffoldKey = GlobalKey(); 138 | 139 | @override 140 | void initState() { 141 | pickedColor = Colors.red; 142 | getMasterPass(); 143 | pickedIcon = 0; 144 | // authenticate(); 145 | super.initState(); 146 | } 147 | 148 | checkPassStrength(String pass) { 149 | setState(() { 150 | passwordStrength = estimatePasswordStrength(pass); 151 | Color passwordStrengthBarColor = Colors.red; 152 | if (passwordStrength < 0.4) { 153 | passwordStrengthBarColor = Colors.red; 154 | } else if (passwordStrength > 0.4 && passwordStrength < 0.7) { 155 | passwordStrengthBarColor = Colors.deepOrangeAccent; 156 | } else if (passwordStrength < 0.7) { 157 | passwordStrengthBarColor = Colors.orange; 158 | } else if (passwordStrength > 0.7 || passwordStrength == 0.7) { 159 | passwordStrengthBarColor = Colors.green; 160 | } 161 | setState(() { 162 | this.passwordStrengthBarColor = passwordStrengthBarColor; 163 | }); 164 | }); 165 | } 166 | 167 | @override 168 | Widget build(BuildContext context) { 169 | var size = MediaQuery.of(context).size; 170 | Color primaryColor = Theme.of(context).primaryColor; 171 | 172 | return Scaffold( 173 | key: scaffoldKey, 174 | body: SingleChildScrollView( 175 | child: Column( 176 | mainAxisAlignment: MainAxisAlignment.start, 177 | crossAxisAlignment: CrossAxisAlignment.start, 178 | children: [ 179 | Padding( 180 | padding: const EdgeInsets.all(16.0), 181 | child: Container( 182 | margin: EdgeInsets.only(top: size.height * 0.05), 183 | child: Text( 184 | "Add Password", 185 | style: TextStyle( 186 | fontFamily: "Title", fontSize: 32, color: primaryColor), 187 | ), 188 | ), 189 | ), 190 | Form( 191 | key: _formKey, 192 | child: Column( 193 | children: [ 194 | Padding( 195 | padding: const EdgeInsets.all(10.0), 196 | child: TextFormField( 197 | validator: (value) { 198 | if (value.isEmpty) { 199 | return 'Please enter valid title'; 200 | } 201 | }, 202 | decoration: InputDecoration( 203 | labelText: "Title", 204 | labelStyle: TextStyle(fontFamily: "Subtitle"), 205 | border: OutlineInputBorder( 206 | borderRadius: BorderRadius.circular(16))), 207 | controller: appNameController, 208 | ), 209 | ), 210 | Padding( 211 | padding: const EdgeInsets.all(10.0), 212 | child: TextFormField( 213 | validator: (value) { 214 | if (value.isEmpty) { 215 | return 'Please enter valid Username'; 216 | } 217 | }, 218 | decoration: InputDecoration( 219 | labelText: "User Name/Email (if available)", 220 | labelStyle: TextStyle(fontFamily: "Subtitle"), 221 | border: OutlineInputBorder( 222 | borderRadius: BorderRadius.circular(16))), 223 | controller: userNameController, 224 | ), 225 | ), 226 | Padding( 227 | padding: const EdgeInsets.all(8.0), 228 | child: TextField( 229 | // validator: (value) { 230 | // if (value.isEmpty) { 231 | // return 'Please enter valid password'; 232 | // } 233 | // }, 234 | onChanged: (pass) { 235 | checkPassStrength(pass); 236 | }, 237 | obscureText: obscureText, 238 | decoration: InputDecoration( 239 | // errorText: 'Please enter valid password', 240 | labelText: "Password", 241 | labelStyle: TextStyle(fontFamily: "Subtitle"), 242 | border: OutlineInputBorder( 243 | borderRadius: BorderRadius.circular(16), 244 | ), 245 | ), 246 | controller: passwordController, 247 | ), 248 | ), 249 | Padding( 250 | padding: EdgeInsets.only(), 251 | child: Row( 252 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 253 | children: [ 254 | FlatButton( 255 | onPressed: () { 256 | String pass = randomAlphaNumeric(10); 257 | passwordController.text = pass; 258 | checkPassStrength(pass); 259 | }, 260 | child: Text('Generate'), 261 | ), 262 | FlatButton( 263 | onPressed: () { 264 | setState(() { 265 | obscureText = !obscureText; 266 | if (obscureText) { 267 | show_hide = 'Show Password'; 268 | } else { 269 | show_hide = 'Hide Password'; 270 | } 271 | }); 272 | }, 273 | child: Text(show_hide), 274 | ), 275 | FlatButton( 276 | onPressed: () { 277 | Clipboard.setData(new ClipboardData( 278 | text: passwordController.text)); 279 | scaffoldKey.currentState.showSnackBar( 280 | SnackBar( 281 | content: Text("Copied to Clipboard"), 282 | duration: Duration(seconds: 2), 283 | ), 284 | ); 285 | }, 286 | child: Text('Copy'), 287 | ), 288 | ], 289 | ), 290 | ), 291 | Padding( 292 | padding: const EdgeInsets.symmetric( 293 | vertical: 10, horizontal: 15), 294 | child: Align( 295 | alignment: Alignment.centerLeft, 296 | child: Container( 297 | height: 10, 298 | width: passwordStrength == 0 299 | ? 5 300 | : MediaQuery.of(context).size.width * 301 | passwordStrength, 302 | decoration: BoxDecoration( 303 | borderRadius: BorderRadius.circular(10), 304 | color: passwordStrengthBarColor, 305 | ), 306 | ), 307 | ), 308 | ), 309 | Padding( 310 | padding: 311 | const EdgeInsets.only(left: 8.0, right: 8.0, top: 8.0), 312 | child: Row( 313 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 314 | children: [ 315 | Padding( 316 | padding: const EdgeInsets.only( 317 | left: 8.0, right: 8.0, top: 8.0), 318 | child: Text( 319 | "Pick an Icon", 320 | style: TextStyle( 321 | fontFamily: 'Title', 322 | fontSize: 20, 323 | color: primaryColor), 324 | ), 325 | ), 326 | Padding( 327 | padding: const EdgeInsets.only( 328 | left: 8.0, right: 8.0, top: 8.0), 329 | child: Material( 330 | shape: CircleBorder(), 331 | elevation: 4.0, 332 | child: CircleAvatar( 333 | backgroundColor: pickedColor, 334 | radius: 25, 335 | child: icons[pickedIcon]), 336 | ), 337 | ), 338 | ], 339 | ), 340 | ), 341 | Padding( 342 | padding: EdgeInsets.fromLTRB(20.0, 0, 24, 10), 343 | child: GridView.count( 344 | shrinkWrap: true, 345 | scrollDirection: Axis.vertical, 346 | crossAxisCount: 5, 347 | crossAxisSpacing: 2, 348 | mainAxisSpacing: 15, 349 | childAspectRatio: 1.3, 350 | children: List.generate(icons.length, (index) { 351 | return InkWell( 352 | onTap: () { 353 | setState(() { 354 | pickedIcon = index; 355 | }); 356 | }, 357 | child: Material( 358 | elevation: 4.0, 359 | color: pickedColor, 360 | shape: CircleBorder(), 361 | child: icons[index]), 362 | ); 363 | })), 364 | ), 365 | Padding( 366 | padding: const EdgeInsets.all(8.0), 367 | child: Row( 368 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 369 | children: [ 370 | Padding( 371 | padding: const EdgeInsets.all(8.0), 372 | child: Text( 373 | "Pick a Color", 374 | style: TextStyle( 375 | fontFamily: 'Title', 376 | fontSize: 20, 377 | color: primaryColor), 378 | ), 379 | ), 380 | InkWell( 381 | onTap: () { 382 | _openColorPicker(); 383 | }, 384 | child: Padding( 385 | padding: const EdgeInsets.only( 386 | left: 8.0, right: 8.0, top: 8.0), 387 | child: Material( 388 | shape: CircleBorder(), 389 | elevation: 4.0, 390 | child: CircleAvatar( 391 | backgroundColor: pickedColor, 392 | radius: 25, 393 | )), 394 | ), 395 | ) 396 | ], 397 | ), 398 | ), 399 | ], 400 | ), 401 | ), 402 | ], 403 | ), 404 | ), 405 | floatingActionButton: FloatingActionButton( 406 | backgroundColor: primaryColor, 407 | child: Icon(Icons.add), 408 | onPressed: () { 409 | if (_formKey.currentState.validate()) { 410 | encryptPass(passwordController.text); 411 | Password password = new Password( 412 | appName: appNameController.text, 413 | password: encryptedString, 414 | color: "#" + pickedColor.value.toRadixString(16), 415 | icon: iconNames[pickedIcon], 416 | userName: userNameController.text); 417 | DBProvider.db.newPassword(password); 418 | Navigator.pushAndRemoveUntil( 419 | context, 420 | MaterialPageRoute( 421 | builder: (BuildContext context) => PasswordHomepage()), 422 | (Route route) => false); 423 | } else { 424 | // print(Theme.of(context).accentColor); 425 | } 426 | }, 427 | ), 428 | ); 429 | } 430 | 431 | _openColorPicker() async { 432 | Color _tempShadeColor = pickedColor; 433 | showDialog( 434 | context: context, 435 | builder: (_) { 436 | return AlertDialog( 437 | contentPadding: const EdgeInsets.all(6.0), 438 | title: Text("Color picker"), 439 | actions: [ 440 | FlatButton( 441 | child: Text('CANCEL'), 442 | onPressed: Navigator.of(context).pop, 443 | ), 444 | FlatButton( 445 | child: Text('SUBMIT'), 446 | onPressed: () { 447 | Navigator.of(context).pop(); 448 | setState(() { 449 | pickedColor = _tempShadeColor; 450 | }); 451 | }, 452 | ), 453 | ], 454 | content: MaterialColorPicker( 455 | allowShades: true, 456 | selectedColor: _tempShadeColor, 457 | onColorChange: (color) => setState(() => _tempShadeColor = color), 458 | onMainColorChange: (color) => 459 | setState(() => _tempShadeColor = color), 460 | ), 461 | ); 462 | }, 463 | ); 464 | } 465 | 466 | encryptPass(String text) { 467 | keyString = masterPassString; 468 | if (keyString.length < 32) { 469 | int count = 32 - keyString.length; 470 | for (var i = 0; i < count; i++) { 471 | keyString += "."; 472 | } 473 | } 474 | final key = encrypt.Key.fromUtf8(keyString); 475 | final plainText = text; 476 | final iv = encrypt.IV.fromLength(16); 477 | 478 | final encrypter = encrypt.Encrypter(encrypt.AES(key)); 479 | final e = encrypter.encrypt(plainText, iv: iv); 480 | encryptedString = e.base64.toString(); 481 | } 482 | } 483 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0E52C40AFA7D79975B099A75 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 53B2FCD5EB8DDB2B7B56CC9E /* libPods-Runner.a */; }; 11 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 44 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 45 | 53B2FCD5EB8DDB2B7B56CC9E /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 78394573FB72B1D9C140B909 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 48 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 57 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 58 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | D0A0A4ECA85319C3D4A7D85B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 60 | F2DCD53F9101CC244D6D0A3E /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 69 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 70 | 0E52C40AFA7D79975B099A75 /* libPods-Runner.a in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 61D82502CB94A29EFEAAF1F7 /* Frameworks */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 53B2FCD5EB8DDB2B7B56CC9E /* libPods-Runner.a */, 81 | ); 82 | name = Frameworks; 83 | sourceTree = ""; 84 | }; 85 | 8F20AAAD36EC91A1FD967860 /* Pods */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 78394573FB72B1D9C140B909 /* Pods-Runner.debug.xcconfig */, 89 | D0A0A4ECA85319C3D4A7D85B /* Pods-Runner.release.xcconfig */, 90 | F2DCD53F9101CC244D6D0A3E /* Pods-Runner.profile.xcconfig */, 91 | ); 92 | name = Pods; 93 | path = Pods; 94 | sourceTree = ""; 95 | }; 96 | 9740EEB11CF90186004384FC /* Flutter */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 3B80C3931E831B6300D905FE /* App.framework */, 100 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 101 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 102 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 103 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 104 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 105 | ); 106 | name = Flutter; 107 | sourceTree = ""; 108 | }; 109 | 97C146E51CF9000F007C117D = { 110 | isa = PBXGroup; 111 | children = ( 112 | 9740EEB11CF90186004384FC /* Flutter */, 113 | 97C146F01CF9000F007C117D /* Runner */, 114 | 97C146EF1CF9000F007C117D /* Products */, 115 | 8F20AAAD36EC91A1FD967860 /* Pods */, 116 | 61D82502CB94A29EFEAAF1F7 /* Frameworks */, 117 | ); 118 | sourceTree = ""; 119 | }; 120 | 97C146EF1CF9000F007C117D /* Products */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 97C146EE1CF9000F007C117D /* Runner.app */, 124 | ); 125 | name = Products; 126 | sourceTree = ""; 127 | }; 128 | 97C146F01CF9000F007C117D /* Runner */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 132 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 133 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 134 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 135 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 136 | 97C147021CF9000F007C117D /* Info.plist */, 137 | 97C146F11CF9000F007C117D /* Supporting Files */, 138 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 139 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 140 | ); 141 | path = Runner; 142 | sourceTree = ""; 143 | }; 144 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 97C146F21CF9000F007C117D /* main.m */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | /* End PBXGroup section */ 153 | 154 | /* Begin PBXNativeTarget section */ 155 | 97C146ED1CF9000F007C117D /* Runner */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 158 | buildPhases = ( 159 | 6E4413B326FCC522C4136D42 /* [CP] Check Pods Manifest.lock */, 160 | 9740EEB61CF901F6004384FC /* Run Script */, 161 | 97C146EA1CF9000F007C117D /* Sources */, 162 | 97C146EB1CF9000F007C117D /* Frameworks */, 163 | 97C146EC1CF9000F007C117D /* Resources */, 164 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 165 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 166 | 848406BA4E7C61724980A30A /* [CP] Embed Pods Frameworks */, 167 | ); 168 | buildRules = ( 169 | ); 170 | dependencies = ( 171 | ); 172 | name = Runner; 173 | productName = Runner; 174 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 175 | productType = "com.apple.product-type.application"; 176 | }; 177 | /* End PBXNativeTarget section */ 178 | 179 | /* Begin PBXProject section */ 180 | 97C146E61CF9000F007C117D /* Project object */ = { 181 | isa = PBXProject; 182 | attributes = { 183 | LastUpgradeCheck = 0910; 184 | ORGANIZATIONNAME = "The Chromium Authors"; 185 | TargetAttributes = { 186 | 97C146ED1CF9000F007C117D = { 187 | CreatedOnToolsVersion = 7.3.1; 188 | }; 189 | }; 190 | }; 191 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 192 | compatibilityVersion = "Xcode 3.2"; 193 | developmentRegion = English; 194 | hasScannedForEncodings = 0; 195 | knownRegions = ( 196 | en, 197 | Base, 198 | ); 199 | mainGroup = 97C146E51CF9000F007C117D; 200 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 201 | projectDirPath = ""; 202 | projectRoot = ""; 203 | targets = ( 204 | 97C146ED1CF9000F007C117D /* Runner */, 205 | ); 206 | }; 207 | /* End PBXProject section */ 208 | 209 | /* Begin PBXResourcesBuildPhase section */ 210 | 97C146EC1CF9000F007C117D /* Resources */ = { 211 | isa = PBXResourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 215 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 216 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | ); 230 | inputPaths = ( 231 | ); 232 | name = "Thin Binary"; 233 | outputPaths = ( 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | shellPath = /bin/sh; 237 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 238 | }; 239 | 6E4413B326FCC522C4136D42 /* [CP] Check Pods Manifest.lock */ = { 240 | isa = PBXShellScriptBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | ); 244 | inputFileListPaths = ( 245 | ); 246 | inputPaths = ( 247 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 248 | "${PODS_ROOT}/Manifest.lock", 249 | ); 250 | name = "[CP] Check Pods Manifest.lock"; 251 | outputFileListPaths = ( 252 | ); 253 | outputPaths = ( 254 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | shellPath = /bin/sh; 258 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 259 | showEnvVarsInLog = 0; 260 | }; 261 | 848406BA4E7C61724980A30A /* [CP] Embed Pods Frameworks */ = { 262 | isa = PBXShellScriptBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | ); 266 | inputPaths = ( 267 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 268 | "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", 269 | ); 270 | name = "[CP] Embed Pods Frameworks"; 271 | outputPaths = ( 272 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | shellPath = /bin/sh; 276 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 277 | showEnvVarsInLog = 0; 278 | }; 279 | 9740EEB61CF901F6004384FC /* Run Script */ = { 280 | isa = PBXShellScriptBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | ); 284 | inputPaths = ( 285 | ); 286 | name = "Run Script"; 287 | outputPaths = ( 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | shellPath = /bin/sh; 291 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 292 | }; 293 | /* End PBXShellScriptBuildPhase section */ 294 | 295 | /* Begin PBXSourcesBuildPhase section */ 296 | 97C146EA1CF9000F007C117D /* Sources */ = { 297 | isa = PBXSourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 301 | 97C146F31CF9000F007C117D /* main.m in Sources */, 302 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | /* End PBXSourcesBuildPhase section */ 307 | 308 | /* Begin PBXVariantGroup section */ 309 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 97C146FB1CF9000F007C117D /* Base */, 313 | ); 314 | name = Main.storyboard; 315 | sourceTree = ""; 316 | }; 317 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 318 | isa = PBXVariantGroup; 319 | children = ( 320 | 97C147001CF9000F007C117D /* Base */, 321 | ); 322 | name = LaunchScreen.storyboard; 323 | sourceTree = ""; 324 | }; 325 | /* End PBXVariantGroup section */ 326 | 327 | /* Begin XCBuildConfiguration section */ 328 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 329 | isa = XCBuildConfiguration; 330 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 331 | buildSettings = { 332 | ALWAYS_SEARCH_USER_PATHS = NO; 333 | CLANG_ANALYZER_NONNULL = YES; 334 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 335 | CLANG_CXX_LIBRARY = "libc++"; 336 | CLANG_ENABLE_MODULES = YES; 337 | CLANG_ENABLE_OBJC_ARC = YES; 338 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 339 | CLANG_WARN_BOOL_CONVERSION = YES; 340 | CLANG_WARN_COMMA = YES; 341 | CLANG_WARN_CONSTANT_CONVERSION = YES; 342 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 343 | CLANG_WARN_EMPTY_BODY = YES; 344 | CLANG_WARN_ENUM_CONVERSION = YES; 345 | CLANG_WARN_INFINITE_RECURSION = YES; 346 | CLANG_WARN_INT_CONVERSION = YES; 347 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 348 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 349 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 350 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 351 | CLANG_WARN_STRICT_PROTOTYPES = YES; 352 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 353 | CLANG_WARN_UNREACHABLE_CODE = YES; 354 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 355 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 356 | COPY_PHASE_STRIP = NO; 357 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 358 | ENABLE_NS_ASSERTIONS = NO; 359 | ENABLE_STRICT_OBJC_MSGSEND = YES; 360 | GCC_C_LANGUAGE_STANDARD = gnu99; 361 | GCC_NO_COMMON_BLOCKS = YES; 362 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 363 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 364 | GCC_WARN_UNDECLARED_SELECTOR = YES; 365 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 366 | GCC_WARN_UNUSED_FUNCTION = YES; 367 | GCC_WARN_UNUSED_VARIABLE = YES; 368 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 369 | MTL_ENABLE_DEBUG_INFO = NO; 370 | SDKROOT = iphoneos; 371 | TARGETED_DEVICE_FAMILY = "1,2"; 372 | VALIDATE_PRODUCT = YES; 373 | }; 374 | name = Profile; 375 | }; 376 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 377 | isa = XCBuildConfiguration; 378 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 379 | buildSettings = { 380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 381 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 382 | DEVELOPMENT_TEAM = S8QB4VV633; 383 | ENABLE_BITCODE = NO; 384 | FRAMEWORK_SEARCH_PATHS = ( 385 | "$(inherited)", 386 | "$(PROJECT_DIR)/Flutter", 387 | ); 388 | INFOPLIST_FILE = Runner/Info.plist; 389 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 390 | LIBRARY_SEARCH_PATHS = ( 391 | "$(inherited)", 392 | "$(PROJECT_DIR)/Flutter", 393 | ); 394 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cipherly; 395 | PRODUCT_NAME = "$(TARGET_NAME)"; 396 | VERSIONING_SYSTEM = "apple-generic"; 397 | }; 398 | name = Profile; 399 | }; 400 | 97C147031CF9000F007C117D /* Debug */ = { 401 | isa = XCBuildConfiguration; 402 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 403 | buildSettings = { 404 | ALWAYS_SEARCH_USER_PATHS = NO; 405 | CLANG_ANALYZER_NONNULL = YES; 406 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 407 | CLANG_CXX_LIBRARY = "libc++"; 408 | CLANG_ENABLE_MODULES = YES; 409 | CLANG_ENABLE_OBJC_ARC = YES; 410 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 411 | CLANG_WARN_BOOL_CONVERSION = YES; 412 | CLANG_WARN_COMMA = YES; 413 | CLANG_WARN_CONSTANT_CONVERSION = YES; 414 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 415 | CLANG_WARN_EMPTY_BODY = YES; 416 | CLANG_WARN_ENUM_CONVERSION = YES; 417 | CLANG_WARN_INFINITE_RECURSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 423 | CLANG_WARN_STRICT_PROTOTYPES = YES; 424 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 425 | CLANG_WARN_UNREACHABLE_CODE = YES; 426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 428 | COPY_PHASE_STRIP = NO; 429 | DEBUG_INFORMATION_FORMAT = dwarf; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | ENABLE_TESTABILITY = YES; 432 | GCC_C_LANGUAGE_STANDARD = gnu99; 433 | GCC_DYNAMIC_NO_PIC = NO; 434 | GCC_NO_COMMON_BLOCKS = YES; 435 | GCC_OPTIMIZATION_LEVEL = 0; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 447 | MTL_ENABLE_DEBUG_INFO = YES; 448 | ONLY_ACTIVE_ARCH = YES; 449 | SDKROOT = iphoneos; 450 | TARGETED_DEVICE_FAMILY = "1,2"; 451 | }; 452 | name = Debug; 453 | }; 454 | 97C147041CF9000F007C117D /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 457 | buildSettings = { 458 | ALWAYS_SEARCH_USER_PATHS = NO; 459 | CLANG_ANALYZER_NONNULL = YES; 460 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 461 | CLANG_CXX_LIBRARY = "libc++"; 462 | CLANG_ENABLE_MODULES = YES; 463 | CLANG_ENABLE_OBJC_ARC = YES; 464 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 465 | CLANG_WARN_BOOL_CONVERSION = YES; 466 | CLANG_WARN_COMMA = YES; 467 | CLANG_WARN_CONSTANT_CONVERSION = YES; 468 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 469 | CLANG_WARN_EMPTY_BODY = YES; 470 | CLANG_WARN_ENUM_CONVERSION = YES; 471 | CLANG_WARN_INFINITE_RECURSION = YES; 472 | CLANG_WARN_INT_CONVERSION = YES; 473 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 474 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 475 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 476 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 477 | CLANG_WARN_STRICT_PROTOTYPES = YES; 478 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 479 | CLANG_WARN_UNREACHABLE_CODE = YES; 480 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 481 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 482 | COPY_PHASE_STRIP = NO; 483 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 484 | ENABLE_NS_ASSERTIONS = NO; 485 | ENABLE_STRICT_OBJC_MSGSEND = YES; 486 | GCC_C_LANGUAGE_STANDARD = gnu99; 487 | GCC_NO_COMMON_BLOCKS = YES; 488 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 489 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 490 | GCC_WARN_UNDECLARED_SELECTOR = YES; 491 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 492 | GCC_WARN_UNUSED_FUNCTION = YES; 493 | GCC_WARN_UNUSED_VARIABLE = YES; 494 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 495 | MTL_ENABLE_DEBUG_INFO = NO; 496 | SDKROOT = iphoneos; 497 | TARGETED_DEVICE_FAMILY = "1,2"; 498 | VALIDATE_PRODUCT = YES; 499 | }; 500 | name = Release; 501 | }; 502 | 97C147061CF9000F007C117D /* Debug */ = { 503 | isa = XCBuildConfiguration; 504 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 505 | buildSettings = { 506 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 507 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 508 | ENABLE_BITCODE = NO; 509 | FRAMEWORK_SEARCH_PATHS = ( 510 | "$(inherited)", 511 | "$(PROJECT_DIR)/Flutter", 512 | ); 513 | INFOPLIST_FILE = Runner/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 515 | LIBRARY_SEARCH_PATHS = ( 516 | "$(inherited)", 517 | "$(PROJECT_DIR)/Flutter", 518 | ); 519 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cipherly; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | VERSIONING_SYSTEM = "apple-generic"; 522 | }; 523 | name = Debug; 524 | }; 525 | 97C147071CF9000F007C117D /* Release */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 528 | buildSettings = { 529 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 530 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 531 | ENABLE_BITCODE = NO; 532 | FRAMEWORK_SEARCH_PATHS = ( 533 | "$(inherited)", 534 | "$(PROJECT_DIR)/Flutter", 535 | ); 536 | INFOPLIST_FILE = Runner/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 538 | LIBRARY_SEARCH_PATHS = ( 539 | "$(inherited)", 540 | "$(PROJECT_DIR)/Flutter", 541 | ); 542 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cipherly; 543 | PRODUCT_NAME = "$(TARGET_NAME)"; 544 | VERSIONING_SYSTEM = "apple-generic"; 545 | }; 546 | name = Release; 547 | }; 548 | /* End XCBuildConfiguration section */ 549 | 550 | /* Begin XCConfigurationList section */ 551 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 552 | isa = XCConfigurationList; 553 | buildConfigurations = ( 554 | 97C147031CF9000F007C117D /* Debug */, 555 | 97C147041CF9000F007C117D /* Release */, 556 | 249021D3217E4FDB00AE95B9 /* Profile */, 557 | ); 558 | defaultConfigurationIsVisible = 0; 559 | defaultConfigurationName = Release; 560 | }; 561 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 562 | isa = XCConfigurationList; 563 | buildConfigurations = ( 564 | 97C147061CF9000F007C117D /* Debug */, 565 | 97C147071CF9000F007C117D /* Release */, 566 | 249021D4217E4FDB00AE95B9 /* Profile */, 567 | ); 568 | defaultConfigurationIsVisible = 0; 569 | defaultConfigurationName = Release; 570 | }; 571 | /* End XCConfigurationList section */ 572 | }; 573 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 574 | } 575 | --------------------------------------------------------------------------------