diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a30d25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,398 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml diff --git a/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/.gitignore b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/.gitignore new file mode 100644 index 0000000..7252d66 --- /dev/null +++ b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/.idea.PasswordMgr_UWP.iml +/contentModel.xml +/modules.xml +/projectSettingsUpdater.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/.name b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/.name new file mode 100644 index 0000000..d2d42b2 --- /dev/null +++ b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/.name @@ -0,0 +1 @@ +PasswordMgr_UWP \ No newline at end of file diff --git a/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/discord.xml b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/discord.xml new file mode 100644 index 0000000..8cf359d --- /dev/null +++ b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/encodings.xml b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/indexLayout.xml b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/vcs.xml b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Password Manager/.idea/.idea.PasswordMgr_UWP/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/29109215-6b8e-4ca0-8543-fded414361e9.vsidx b/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/29109215-6b8e-4ca0-8543-fded414361e9.vsidx new file mode 100644 index 0000000..afc4ea4 Binary files /dev/null and b/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/29109215-6b8e-4ca0-8543-fded414361e9.vsidx differ diff --git a/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/4a16c14a-e1bc-46ad-b3ca-c20b0ab8762c.vsidx b/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/4a16c14a-e1bc-46ad-b3ca-c20b0ab8762c.vsidx new file mode 100644 index 0000000..3a665af Binary files /dev/null and b/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/4a16c14a-e1bc-46ad-b3ca-c20b0ab8762c.vsidx differ diff --git a/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/read.lock b/Password Manager/.vs/PasswordMgr_UWP/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/Password Manager/.vs/PasswordMgr_UWP/v17/.futdcache.v2 b/Password Manager/.vs/PasswordMgr_UWP/v17/.futdcache.v2 new file mode 100644 index 0000000..f9015e6 Binary files /dev/null and b/Password Manager/.vs/PasswordMgr_UWP/v17/.futdcache.v2 differ diff --git a/Password Manager/.vs/PasswordMgr_UWP/v17/.suo b/Password Manager/.vs/PasswordMgr_UWP/v17/.suo new file mode 100644 index 0000000..8f35af7 Binary files /dev/null and b/Password Manager/.vs/PasswordMgr_UWP/v17/.suo differ diff --git a/Password Manager/.vs/ProjectEvaluation/passwordmgr_uwp.metadata.v5.2 b/Password Manager/.vs/ProjectEvaluation/passwordmgr_uwp.metadata.v5.2 new file mode 100644 index 0000000..e406546 Binary files /dev/null and b/Password Manager/.vs/ProjectEvaluation/passwordmgr_uwp.metadata.v5.2 differ diff --git a/Password Manager/.vs/ProjectEvaluation/passwordmgr_uwp.projects.v5.2 b/Password Manager/.vs/ProjectEvaluation/passwordmgr_uwp.projects.v5.2 new file mode 100644 index 0000000..e992830 Binary files /dev/null and b/Password Manager/.vs/ProjectEvaluation/passwordmgr_uwp.projects.v5.2 differ diff --git a/Password Manager/PasswordMgr_UWP.Core/Models/EncryptedDatabase.cs b/Password Manager/PasswordMgr_UWP.Core/Models/EncryptedDatabase.cs index 9288de4..5217c24 100644 --- a/Password Manager/PasswordMgr_UWP.Core/Models/EncryptedDatabase.cs +++ b/Password Manager/PasswordMgr_UWP.Core/Models/EncryptedDatabase.cs @@ -66,6 +66,10 @@ public void Encrypt() PlaintextPassword = null; } + public async Task EncryptAsync() + { + Encrypt(); + } /// /// Decrypts the database. /// diff --git a/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.deps.json b/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.deps.json deleted file mode 100644 index 5eb7568..0000000 --- a/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.deps.json +++ /dev/null @@ -1,227 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETStandard,Version=v2.0/", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETStandard,Version=v2.0": {}, - ".NETStandard,Version=v2.0/": { - "PasswordMgr_UWP.Core/1.0.0": { - "dependencies": { - "NETStandard.Library": "2.0.3", - "Newtonsoft.Json": "13.0.1", - "Newtonsoft.Json.Bson": "1.0.2", - "System.Text.Json": "5.0.2" - }, - "runtime": { - "PasswordMgr_UWP.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/5.0.0": { - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.51904" - } - } - }, - "Microsoft.NETCore.Platforms/1.1.0": {}, - "NETStandard.Library/2.0.3": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - } - }, - "Newtonsoft.Json/13.0.1": { - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": { - "assemblyVersion": "13.0.0.0", - "fileVersion": "13.0.1.25517" - } - } - }, - "Newtonsoft.Json.Bson/1.0.2": { - "dependencies": { - "Newtonsoft.Json": "13.0.1" - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.Bson.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.0.2.22727" - } - } - }, - "System.Buffers/4.5.1": { - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": { - "assemblyVersion": "4.0.3.0", - "fileVersion": "4.6.28619.1" - } - } - }, - "System.Memory/4.5.4": { - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "5.0.0" - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": { - "assemblyVersion": "4.0.1.1", - "fileVersion": "4.6.28619.1" - } - } - }, - "System.Numerics.Vectors/4.5.0": { - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": { - "assemblyVersion": "4.1.4.0", - "fileVersion": "4.6.26515.6" - } - } - }, - "System.Runtime.CompilerServices.Unsafe/5.0.0": { - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.20.51904" - } - } - }, - "System.Text.Encodings.Web/5.0.1": { - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.4" - }, - "runtime": { - "lib/netstandard2.0/System.Text.Encodings.Web.dll": { - "assemblyVersion": "5.0.0.1", - "fileVersion": "5.0.421.11614" - } - } - }, - "System.Text.Json/5.0.2": { - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "5.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.4", - "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "5.0.0", - "System.Text.Encodings.Web": "5.0.1", - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "runtime": { - "lib/netstandard2.0/System.Text.Json.dll": { - "assemblyVersion": "5.0.0.0", - "fileVersion": "5.0.521.16609" - } - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "5.0.0" - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": { - "assemblyVersion": "4.2.0.1", - "fileVersion": "4.6.28619.1" - } - } - } - } - }, - "libraries": { - "PasswordMgr_UWP.Core/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "Microsoft.Bcl.AsyncInterfaces/5.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-W8DPQjkMScOMTtJbPwmPyj9c3zYSFGawDW3jwlBOOsnY+EzZFLgNQ/UMkK35JmkNOVPdCyPr2Tw7Vv9N+KA3ZQ==", - "path": "microsoft.bcl.asyncinterfaces/5.0.0", - "hashPath": "microsoft.bcl.asyncinterfaces.5.0.0.nupkg.sha512" - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "path": "microsoft.netcore.platforms/1.1.0", - "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "path": "netstandard.library/2.0.3", - "hashPath": "netstandard.library.2.0.3.nupkg.sha512" - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "path": "newtonsoft.json/13.0.1", - "hashPath": "newtonsoft.json.13.0.1.nupkg.sha512" - }, - "Newtonsoft.Json.Bson/1.0.2": { - "type": "package", - "serviceable": true, - "sha512": "sha512-QYFyxhaABwmq3p/21VrZNYvCg3DaEoN/wUuw5nmfAf0X3HLjgupwhkEWdgfb9nvGAUIv3osmZoD3kKl4jxEmYQ==", - "path": "newtonsoft.json.bson/1.0.2", - "hashPath": "newtonsoft.json.bson.1.0.2.nupkg.sha512" - }, - "System.Buffers/4.5.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==", - "path": "system.buffers/4.5.1", - "hashPath": "system.buffers.4.5.1.nupkg.sha512" - }, - "System.Memory/4.5.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==", - "path": "system.memory/4.5.4", - "hashPath": "system.memory.4.5.4.nupkg.sha512" - }, - "System.Numerics.Vectors/4.5.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==", - "path": "system.numerics.vectors/4.5.0", - "hashPath": "system.numerics.vectors.4.5.0.nupkg.sha512" - }, - "System.Runtime.CompilerServices.Unsafe/5.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ZD9TMpsmYJLrxbbmdvhwt9YEgG5WntEnZ/d1eH8JBX9LBp+Ju8BSBhUGbZMNVHHomWo2KVImJhTDl2hIgw/6MA==", - "path": "system.runtime.compilerservices.unsafe/5.0.0", - "hashPath": "system.runtime.compilerservices.unsafe.5.0.0.nupkg.sha512" - }, - "System.Text.Encodings.Web/5.0.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-KmJ+CJXizDofbq6mpqDoRRLcxgOd2z9X3XoFNULSbvbqVRZkFX3istvr+MUjL6Zw1RT+RNdoI4GYidIINtgvqQ==", - "path": "system.text.encodings.web/5.0.1", - "hashPath": "system.text.encodings.web.5.0.1.nupkg.sha512" - }, - "System.Text.Json/5.0.2": { - "type": "package", - "serviceable": true, - "sha512": "sha512-I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==", - "path": "system.text.json/5.0.2", - "hashPath": "system.text.json.5.0.2.nupkg.sha512" - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "serviceable": true, - "sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "path": "system.threading.tasks.extensions/4.5.4", - "hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512" - } - } -} \ No newline at end of file diff --git a/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.dll b/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.dll deleted file mode 100644 index af6c78a..0000000 Binary files a/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.dll and /dev/null differ diff --git a/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.pdb b/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.pdb deleted file mode 100644 index f5cf98e..0000000 Binary files a/Password Manager/PasswordMgr_UWP.Core/bin/Release/netstandard2.0/PasswordMgr_UWP.Core.pdb and /dev/null differ diff --git a/Password Manager/PasswordMgr_UWP/Package.appxmanifest b/Password Manager/PasswordMgr_UWP/Package.appxmanifest index 1a2cd3a..0bb597a 100644 --- a/Password Manager/PasswordMgr_UWP/Package.appxmanifest +++ b/Password Manager/PasswordMgr_UWP/Package.appxmanifest @@ -1,81 +1,82 @@ - + + + + + 11Pass Onionware Assets\StoreLogo.png - - + + + + + - - + + - - - + + - - - + + + - + - - - - - .opv - ms-resource:OpvName - OnionwarePasswordManager.png - - + - - + - \ No newline at end of file + + + + CLRHost.dll + + + + + + + + + + + + + + + + + diff --git a/Password Manager/PasswordMgr_UWP/PasswordMgr_UWP.csproj b/Password Manager/PasswordMgr_UWP/PasswordMgr_UWP.csproj index f677199..3fe166c 100644 --- a/Password Manager/PasswordMgr_UWP/PasswordMgr_UWP.csproj +++ b/Password Manager/PasswordMgr_UWP/PasswordMgr_UWP.csproj @@ -315,6 +315,7 @@ + @@ -347,4 +348,4 @@ --> - \ No newline at end of file + diff --git a/Password Manager/PasswordMgr_UWP/Styles/Page.xaml b/Password Manager/PasswordMgr_UWP/Styles/Page.xaml index 24de3e2..23d523e 100644 --- a/Password Manager/PasswordMgr_UWP/Styles/Page.xaml +++ b/Password Manager/PasswordMgr_UWP/Styles/Page.xaml @@ -1,4 +1,5 @@ - diff --git a/Password Manager/PasswordMgr_UWP/ViewModels/DatabaseViewModel.cs b/Password Manager/PasswordMgr_UWP/ViewModels/DatabaseViewModel.cs index eefed53..0c61104 100644 --- a/Password Manager/PasswordMgr_UWP/ViewModels/DatabaseViewModel.cs +++ b/Password Manager/PasswordMgr_UWP/ViewModels/DatabaseViewModel.cs @@ -31,6 +31,7 @@ public DatabaseViewModel() NewDatabaseCommand = new AsyncRelayCommand(() => ShowDatabaseDialogAsync()); NewPasswordCommand = new AsyncRelayCommand(() => ShowPasswordDialogAsync()); DecryptDatabaseCommand = new AsyncRelayCommand(() => ShowMasterPasswordDialog()); + EncryptButtonCommand = new AsyncRelayCommand(() => EncryptDatabase()); DeleteCommand = new AsyncRelayCommand(async () => { //Shows a ContentDialog to prevent an unintended delete @@ -87,6 +88,7 @@ public DatabaseViewModel() public AsyncRelayCommand DecryptDatabaseCommand { get; } public AsyncRelayCommand DeleteCommand { get; } public AsyncRelayCommand SaveCommand { get; } + public AsyncRelayCommand EncryptButtonCommand { get; } public AsyncRelayCommand ExportDatabaseCommand { get; } public AsyncRelayCommand ExportAllDatabasesCommand { get; } public RelayCommand SetSelectedCommand { get; } @@ -489,7 +491,7 @@ private async Task GenerateBson(EncryptedDatabase encryptedDatabase) Databases.Add(encryptedDatabase); } - + /// /// Updates the .bson file for an existing database. /// @@ -550,6 +552,11 @@ public async Task ShowPasswordDialogAsync() } } + public async Task EncryptDatabase() + { + await ((EncryptedDatabase) selected).EncryptAsync(); + } + /// /// Shows a MasterPasswordDialog and tries to decrypt with the given informations. /// diff --git a/Password Manager/PasswordMgr_UWP/Views/DatabasePage.xaml b/Password Manager/PasswordMgr_UWP/Views/DatabasePage.xaml index e066314..27ef4a7 100644 --- a/Password Manager/PasswordMgr_UWP/Views/DatabasePage.xaml +++ b/Password Manager/PasswordMgr_UWP/Views/DatabasePage.xaml @@ -51,7 +51,7 @@ - + @@ -64,9 +64,10 @@ + - + @@ -76,7 +77,7 @@ - + @@ -91,8 +92,8 @@ - + @@ -101,7 +102,7 @@ @@ -109,8 +110,12 @@ + + + + - + - + - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml b/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml index 1c74df5..d2a0ae2 100644 --- a/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml +++ b/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml @@ -42,8 +42,8 @@ - + - + diff --git a/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml.cs b/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml.cs index 25c3656..66bed23 100644 --- a/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml.cs +++ b/Password Manager/PasswordMgr_UWP/Views/ShellPage.xaml.cs @@ -1,6 +1,10 @@ -using PasswordMgr_UWP.ViewModels; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using PasswordMgr_UWP.ViewModels; using Windows.ApplicationModel.Core; using Windows.UI; +using Windows.UI.Core; using Windows.UI.ViewManagement; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation;