Showing preview only (9,570K chars total). Download the full file or copy to clipboard to get everything.
Repository: mbos/Pass4Win
Branch: master
Commit: dd5ac113cfc7
Files: 101
Total size: 9.1 MB
Directory structure:
gitextract_uts1atzz/
├── .gitattributes
├── .gitignore
├── .travis.yml
├── Config.json
├── LICENSE
├── Pass4Win/
│ ├── About.Designer.cs
│ ├── About.cs
│ ├── About.de.resx
│ ├── About.fr.resx
│ ├── About.it.resx
│ ├── About.nl.resx
│ ├── About.resx
│ ├── App.config
│ ├── CmdLineOptions.cs
│ ├── ConfigHandling.cs
│ ├── DirectoryProvider.cs
│ ├── FileProvider.cs
│ ├── FileSystemInterface.cs
│ ├── FodyWeavers.xml
│ ├── Genpass.Designer.cs
│ ├── Genpass.cs
│ ├── Genpass.de.resx
│ ├── Genpass.fr.resx
│ ├── Genpass.it.resx
│ ├── Genpass.nl.resx
│ ├── Genpass.resx
│ ├── GitHandling.cs
│ ├── KeyMgm.Designer.cs
│ ├── KeyMgm.cs
│ ├── KeyMgm.de.resx
│ ├── KeyMgm.fr.resx
│ ├── KeyMgm.it.resx
│ ├── KeyMgm.nl.resx
│ ├── KeyMgm.resx
│ ├── KeySelect.Designer.cs
│ ├── KeySelect.cs
│ ├── KeySelect.de.resx
│ ├── KeySelect.fr.resx
│ ├── KeySelect.it.resx
│ ├── KeySelect.nl.resx
│ ├── KeySelect.resx
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.de.resx
│ ├── Main.fr.resx
│ ├── Main.it.resx
│ ├── Main.nl.resx
│ ├── Main.resx
│ ├── NativeMethods.cs
│ ├── Pass4Win.FrmAbout.resources
│ ├── Pass4Win.FrmConfig.resources
│ ├── Pass4Win.FrmKeyManager.resources
│ ├── Pass4Win.FrmMain.resources
│ ├── Pass4Win.Genpass.resources
│ ├── Pass4Win.KeySelect.resources
│ ├── Pass4Win.Properties.Resources.resources
│ ├── Pass4Win.Strings.resources
│ ├── Pass4Win.csproj
│ ├── Pass4WinConfig.json
│ ├── Program.cs
│ ├── Properties/
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── Strings.Designer.cs
│ ├── Strings.de.resx
│ ├── Strings.fr.resx
│ ├── Strings.it.resx
│ ├── Strings.nl.resx
│ ├── Strings.resx
│ ├── config.Designer.cs
│ ├── config.cs
│ ├── config.de.resx
│ ├── config.fr.resx
│ ├── config.it.resx
│ ├── config.nl.resx
│ ├── config.resx
│ ├── icon/
│ │ └── open-iconic-master/
│ │ ├── .gitignore
│ │ ├── ICON-LICENSE
│ │ ├── README.md
│ │ └── bower.json
│ ├── json/
│ │ └── Newtonsoft.Json.xml
│ ├── packages.config
│ ├── pass4win.il
│ ├── pass4win.res
│ └── pwgen.cs
├── Pass4Win.nsi
├── Pass4Win.sln
├── Pass4Win.xml
├── Pass4WinTests/
│ ├── ConfigHandlingTests.cs
│ ├── FileSystemInterfaceTests.cs
│ ├── FodyWeavers.xml
│ ├── Pass4WinTests.csproj
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ ├── PwgenTests.cs
│ ├── Setup.cs
│ ├── app.config
│ └── packages.config
├── Pass4Win_coverage.xml
└── README.md
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
================================================
FILE: .gitignore
================================================
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
.coverity
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
build/
bld/
[Bb]in/
[Oo]bj/
# Roslyn cache directories
*.ide/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
#NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding addin-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
# 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
## TODO: Comment the next line if you want to checkin your
## web deploy settings but do note that will include unencrypted
## passwords
#*.pubxml
# NuGet Packages Directory
packages/*
## TODO: If the tool you use requires repositories.config
## uncomment the next line
#!packages/repositories.config
# Enable "build/" folder in the NuGet Packages folder since
# NuGet packages use it for MSBuild targets.
# This line needs to be after the ignore of the build folder
# (and the packages folder if the line above has been uncommented)
!packages/build/
# Windows Azure Build Output
csx/
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
.vs/
# 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
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
*.exe
================================================
FILE: .travis.yml
================================================
language: csharp
solution: Pass4Win.sln
addons:
apt:
packages:
- nunit-console
install:
- pip install --user codecov
before_script:
- nuget restore Pass4Win.sln
after_script:
- nunit-console Pass4Win.UnitTests/bin/Release/Pass4Win.UnitTests.dll
- codecov
================================================
FILE: Config.json
================================================
{
"version": "1.1.1",
"FirstRun": true
}
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: Pass4Win/About.Designer.cs
================================================
namespace Pass4Win
{
partial class FrmAbout
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAbout));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.txtPassVersion = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// richTextBox1
//
resources.ApplyResources(this.richTextBox1, "richTextBox1");
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.ReadOnly = true;
this.richTextBox1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBox1LinkClicked);
//
// txtPassVersion
//
resources.ApplyResources(this.txtPassVersion, "txtPassVersion");
this.txtPassVersion.Name = "txtPassVersion";
//
// FrmAbout
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.txtPassVersion);
this.Controls.Add(this.richTextBox1);
this.Name = "FrmAbout";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Label txtPassVersion;
}
}
================================================
FILE: Pass4Win/About.cs
================================================
/*
* Copyright (C) 2015 by Mike Bos
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* A copy of the license is obtainable at http://www.gnu.org/licenses/gpl-3.0.en.html#content
*/
using System.Windows.Forms;
namespace Pass4Win
{
public partial class FrmAbout : Form
{
private readonly ConfigHandling _config;
public FrmAbout(ConfigHandling config)
{
_config = config;
InitializeComponent();
// Getting actual version
txtPassVersion.Text += @" " + _config["version"];
}
/// <summary>
/// Enable links to be opened by the system default browser
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void RichTextBox1LinkClicked(object sender, LinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(e.LinkText);
}
}
}
================================================
FILE: Pass4Win/About.de.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="richTextBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name=">>txtPassVersion.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="richTextBox1.Text" xml:space="preserve">
<value>Pass4Win basiert auf Pass (http://www.passwordstore.org/) und ist hinsichtlich der Speicherung und Verschlüsselung der Passwortinformationen mit dem Original kompatibel.
Für Hilfe, Bugreports oder die neuste Version besuche bitte die offizielle Seite des Projekte: https://github.com/mbos/Pass4Win.
Copyright (C) 2015 by Mike Bos
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the license is obtainable at http://www.gnu.org/licenses/gpl-3.0.en.html#content</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>richTextBox1.Name" xml:space="preserve">
<value>richTextBox1</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name=">>txtPassVersion.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="richTextBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 33</value>
</data>
<data name="richTextBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>428, 243</value>
</data>
<data name=">>richTextBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>430, 278</value>
</data>
<data name=">>txtPassVersion.Name" xml:space="preserve">
<value>txtPassVersion</value>
</data>
<data name="txtPassVersion.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 12pt, style=Bold</value>
</data>
<data name="txtPassVersion.Text" xml:space="preserve">
<value>Pass4Win Version</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="txtPassVersion.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="txtPassVersion.Location" type="System.Drawing.Point, System.Drawing">
<value>118, 9</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>FrmAbout</value>
</data>
<data name="txtPassVersion.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name=">>txtPassVersion.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Über das Programm</value>
</data>
<data name=">>richTextBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.RichTextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtPassVersion.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 20</value>
</data>
<data name="richTextBox1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name=">>richTextBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/About.fr.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="richTextBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name=">>txtPassVersion.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="richTextBox1.Text" xml:space="preserve">
<value>Pass4Win est un derivé de Pass (http://www.passwordstore.org/). Un derivé car le dépôt de mot de passe est et devrait être la même entre Pass4Win et Pass.
Pour l'aide, les rapports de bugs ou la dernière versions vous pouvez visiter https://github.com/mbos/Pass4Win.
Copyright (C) 2015 by Mike Bos
Ce programme est un logiciel libre, vous pouvez le redistribuer et/ou le modifier dans les termes de la license LICENCE PUBLIQUE GÉNÉRALE GNU publié par la Free Software Foundation version trois ou supérieur.
Ce programme est distribué dans l'espoir qu'il sera utile, mais SANS AUCUNE GARANTIE pas même celle de qualité ou d'adéquation à un usage particulier. Aller voir la LICENCE PUBLIQUE GÉNÉRALE GNU pour plus de détails. Une copie de celle-ci est disponible ici : http://org.rodage.com//gpl-3.0.fr.txt.</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>richTextBox1.Name" xml:space="preserve">
<value>richTextBox1</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name=">>txtPassVersion.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="richTextBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 33</value>
</data>
<data name="richTextBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>428, 243</value>
</data>
<data name=">>richTextBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>430, 278</value>
</data>
<data name=">>txtPassVersion.Name" xml:space="preserve">
<value>txtPassVersion</value>
</data>
<data name="txtPassVersion.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 12pt, style=Bold</value>
</data>
<data name="txtPassVersion.Text" xml:space="preserve">
<value>Pass4Win version</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="txtPassVersion.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="txtPassVersion.Location" type="System.Drawing.Point, System.Drawing">
<value>118, 9</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>FrmAbout</value>
</data>
<data name="txtPassVersion.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name=">>txtPassVersion.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>A propos</value>
</data>
<data name=">>richTextBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.RichTextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtPassVersion.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 20</value>
</data>
<data name="richTextBox1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name=">>richTextBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/About.it.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="richTextBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name=">>txtPassVersion.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="richTextBox1.Text" xml:space="preserve">
<value>Pass4Win è derivato da Pass (l'http://www.passwordstore.org/) nel senso che l'archivio (struttura di password) è e deve essere esattamente lo stesso tra i due programmi.
Per ottenere aiuto, segnalare bug o ottenere l'ultima versione è possibile visitare https://github.com/mbos/Pass4Win.
Copyright (C) 2015 da Mike Bos
Questo programma è software libero; può essere redistribuito e/o modificato secondo i termini della GNU General Public License come pubblicata dalla Free Software Foundation; versione 3 della licenza, o qualsiasi versione successiva.
Questo programma è distribuito nella speranza che sia utile, ma SENZA ALCUNA GARANZIA; senza neppure la garanzia implicita di COMMERCIABILITA' o IDONEITA' PER UNO SCOPO PARTICOLARE. Vedi la GNU General Public License per maggiori dettagli. Una copia della licenza è ottenibile presso http://www.gnu.org/licenses/gpl-3.0.en.html#content</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>richTextBox1.Name" xml:space="preserve">
<value>richTextBox1</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name=">>txtPassVersion.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="richTextBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 33</value>
</data>
<data name="richTextBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>428, 243</value>
</data>
<data name=">>richTextBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>430, 278</value>
</data>
<data name=">>txtPassVersion.Name" xml:space="preserve">
<value>txtPassVersion</value>
</data>
<data name="txtPassVersion.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 12pt, style=Bold</value>
</data>
<data name="txtPassVersion.Text" xml:space="preserve">
<value>Versione Pass4Win</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="txtPassVersion.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="txtPassVersion.Location" type="System.Drawing.Point, System.Drawing">
<value>118, 9</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>FrmAbout</value>
</data>
<data name="txtPassVersion.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name=">>txtPassVersion.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Maggiori informazioni su</value>
</data>
<data name=">>richTextBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.RichTextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtPassVersion.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 20</value>
</data>
<data name="richTextBox1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name=">>richTextBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/About.nl.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="richTextBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name=">>txtPassVersion.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="richTextBox1.Text" xml:space="preserve">
<value>Pass4Win is voortgekomen uit Pass ((http://www.passwordstore.org/) in die zin dat het formaat van opslaan exact hetzelfde is.
For help, bugreports of de laatste versie kijk op https://github.com/mbos/Pass4Win.
Copyright (C) 2015 by Mike Bos
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the license is obtainable at http://www.gnu.org/licenses/gpl-3.0.en.html#content</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>richTextBox1.Name" xml:space="preserve">
<value>richTextBox1</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name=">>txtPassVersion.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="richTextBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 33</value>
</data>
<data name="richTextBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>428, 243</value>
</data>
<data name=">>richTextBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>430, 278</value>
</data>
<data name=">>txtPassVersion.Name" xml:space="preserve">
<value>txtPassVersion</value>
</data>
<data name="txtPassVersion.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 12pt, style=Bold</value>
</data>
<data name="txtPassVersion.Text" xml:space="preserve">
<value>Pass4Win versie</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="txtPassVersion.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="txtPassVersion.Location" type="System.Drawing.Point, System.Drawing">
<value>118, 9</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>FrmAbout</value>
</data>
<data name="txtPassVersion.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name=">>txtPassVersion.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Over</value>
</data>
<data name=">>richTextBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.RichTextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtPassVersion.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 20</value>
</data>
<data name="richTextBox1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name=">>richTextBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/About.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="richTextBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name=">>txtPassVersion.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="richTextBox1.Text" xml:space="preserve">
<value>Pass4Win is derived from Pass (http://www.passwordstore.org/) in the sense that the store (password structure) is and should be exactly the same between the two programs.
For help, bugreports or the latest version you can visit https://github.com/mbos/Pass4Win.
Copyright (C) 2015 by Mike Bos
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the license is obtainable at http://www.gnu.org/licenses/gpl-3.0.en.html#content</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>richTextBox1.Name" xml:space="preserve">
<value>richTextBox1</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name=">>txtPassVersion.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="richTextBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 33</value>
</data>
<data name="richTextBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>428, 243</value>
</data>
<data name=">>richTextBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>430, 278</value>
</data>
<data name=">>txtPassVersion.Name" xml:space="preserve">
<value>txtPassVersion</value>
</data>
<data name="txtPassVersion.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 12pt, style=Bold</value>
</data>
<data name="txtPassVersion.Text" xml:space="preserve">
<value>Pass4Win version</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="txtPassVersion.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="txtPassVersion.Location" type="System.Drawing.Point, System.Drawing">
<value>118, 9</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>FrmAbout</value>
</data>
<data name="txtPassVersion.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name=">>txtPassVersion.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>About</value>
</data>
<data name=">>richTextBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.RichTextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtPassVersion.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 20</value>
</data>
<data name="richTextBox1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name=">>richTextBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/App.config
================================================
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
<param name="File" value="${log4netFileName}" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<appendToFile value="false" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p %c %m%n" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="LogFileAppender" />
</root>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
================================================
FILE: Pass4Win/CmdLineOptions.cs
================================================
using CommandLine;
namespace Pass4Win
{
class CmdLineOptions
{
[Option('d', "debug", DefaultValue = false, HelpText = "Set the log file to your personal directory")]
public bool Debug { get; set; }
[Option('r', "reset", DefaultValue = false, HelpText = "Resets the config file")]
public bool Reset { get; set; }
[Option('g', "nogit", DefaultValue = false, HelpText = "Use git.")]
public bool NoGit { get; set; }
}
}
================================================
FILE: Pass4Win/ConfigHandling.cs
================================================
namespace Pass4Win
{
using System;
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
using System.IO.IsolatedStorage;
public class ConfigHandling
{
// Logging
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private Dictionary<string, object> values = new Dictionary<string, object>();
private readonly IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);
private string configName = "Pass4Win.json";
private int defaultPassValidTime = 45;
private int passValidTimeBottom = 15;
private int passValidTimeTop = 300;
private int cachedPassValidTime = 0;
public ConfigHandling()
{
Load();
}
/// <summary>
/// Default length of time a password will be kept in the clipboard before clearing, in seconds
/// </summary>
public int DefaultPassValidTime
{
get
{
return defaultPassValidTime;
}
}
/// <summary>
/// Length of time the password is kept in the clipboard before clearing, in seconds.
/// </summary>
public int PassValidTime
{
get
{
if (cachedPassValidTime == 0)
{
// this is a little paranoid, but a user may have edited the config by hand.
if (! int.TryParse(this["PassValidTime"], out cachedPassValidTime) ||
! this.PassValidTimeValidator(cachedPassValidTime))
{
cachedPassValidTime = defaultPassValidTime;
}
}
return cachedPassValidTime;
}
}
/// <summary>
/// Bottom end of PassValidTime values, in seconds
/// </summary>
public int PassValidTimeBottom
{
get
{
return passValidTimeBottom;
}
}
/// <summary>
/// Top end of PassValidTime values, in seconds
/// </summary>
public int PassValidTimeTop
{
get
{
return passValidTimeTop;
}
}
/// <summary>
/// Indexer for the configuration, providing dynamic access to the collection of values in the configuration.</summary>
/// <param name="key">Designates what configuration item will be changed or retrieved.</param>
public dynamic this[string key]
{
get
{
try {
return this.values[key];
}
catch
{
return "";
}
}
set
{
this.values[key] = value;
Save();
}
}
/// <summary>
/// Saves the configuration to the disk.</summary>
public void Save()
{
cachedPassValidTime = 0; // reset cache so a new config value will apply
log.Debug("Saving config");
string json = JsonConvert.SerializeObject(this.values, Formatting.Indented);
IsolatedStorageFileStream isoStream = null;
try
{
isoStream = new IsolatedStorageFileStream(configName, FileMode.OpenOrCreate, isoStore);
using (StreamWriter writer = new StreamWriter(isoStream))
{
isoStream = null;
writer.Write(json);
}
}
finally
{
if (isoStream != null)
isoStream.Dispose();
}
}
/// <summary>
/// Removes an item from the collection.</summary>
public void Delete(string key)
{
log.Debug("Deleting: " + key);
this.values.Remove(key);
Save();
}
/// <summary>
/// Resets the config</summary>
public void ResetConfig()
{
log.Debug("Deleting config file");
isoStore.DeleteFile(configName);
}
/// <summary>
/// Validate value of PassValidTime.
/// </summary>
/// <param name="value">PassValidTime in seconds</param>
/// <returns>True if within bounds, else False</returns>
public bool PassValidTimeValidator(int value)
{
return value >= passValidTimeBottom && value <= passValidTimeTop;
}
/// <summary>
/// Reloads the configuration from the disk.</summary>
private void Load()
{
log.Debug("Loading config file");
if (isoStore.FileExists(configName))
{
string json;
IsolatedStorageFileStream isoStream = null;
// need to use a try/finally because a nested using could Dispose of the stream twice
try
{
isoStream = new IsolatedStorageFileStream(configName, FileMode.Open, isoStore);
using (StreamReader reader = new StreamReader(isoStream))
{
isoStream = null;
json = reader.ReadToEnd();
}
}
finally
{
if (isoStream != null)
isoStream.Dispose();
}
try
{
this.values = JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
}
catch (Exception message)
{
log.Debug(message.Message);
}
}
}
}
}
================================================
FILE: Pass4Win/DirectoryProvider.cs
================================================
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Pass4Win
{
public interface IDirectoryProvider
{
IFileProvider[] GetFiles();
IFileProvider[] GetFiles(string searchPattern, SearchOption searchOption);
string Name { get; set; }
string FullName { get; set; }
IEnumerable<FileInfo> EnumerateFiles();
IEnumerable<IDirectoryProvider> GetDirectories();
}
public class DirectoryProvider : IDirectoryProvider
{
private readonly ConfigHandling _config;
private DirectoryInfo _directoryInfo;
public DirectoryProvider(ConfigHandling config)
{
_config = config;
try
{
_directoryInfo = new DirectoryInfo(_config["PassDirectory"]);
}
catch (ArgumentException)
{
}
}
public DirectoryProvider(DirectoryInfo directoryInfo)
{
_directoryInfo = directoryInfo;
}
public IFileProvider[] GetFiles()
{
if (_directoryInfo?.Exists == false)
_directoryInfo.Create();
return _directoryInfo?.GetFiles().Select(f=>(IFileProvider)new FileProvider(f)).ToArray() ?? new IFileProvider[0];
}
public IFileProvider[] GetFiles(string searchPattern, SearchOption searchOption)
{
return _directoryInfo?.GetFiles(searchPattern, searchOption).Select(f=>(IFileProvider) new FileProvider(f)).ToArray() ?? new IFileProvider[0];
}
public string Name
{
get { return _directoryInfo.Name; }
set { }
}
public string FullName
{
get { return _directoryInfo.FullName; }
set { }
}
public IEnumerable<FileInfo> EnumerateFiles()
{
return _directoryInfo.EnumerateFiles();
}
public IEnumerable<IDirectoryProvider> GetDirectories()
{
return _directoryInfo.GetDirectories().Select(d=>new DirectoryProvider(d));
}
}
}
================================================
FILE: Pass4Win/FileProvider.cs
================================================
using System.IO;
namespace Pass4Win
{
public interface IFileProvider
{
string Name { get; set; }
string FullName { get; set; }
string Extension { get; set; }
}
public class FileProvider : IFileProvider
{
private readonly FileInfo _fileInfo;
public FileProvider(FileInfo fileInfo)
{
_fileInfo = fileInfo;
}
public string Name
{
get { return _fileInfo.Name; }
set { }
}
public string FullName
{
get { return _fileInfo.FullName; }
set { }
}
public string Extension
{
get { return _fileInfo.Extension; }
set { }
}
}
}
================================================
FILE: Pass4Win/FileSystemInterface.cs
================================================
/*
* Copyright (C) 2015 by Mike Bos
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* A copy of the license is obtainable at http://www.gnu.org/licenses/gpl-3.0.en.html#content
*/
namespace Pass4Win
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Autofac;
/// <summary>
/// Class to interface with the file system ie read directories and file operations
/// </summary>
public class FileSystemInterface
{
private readonly ConfigHandling _config;
private readonly IDirectoryProvider _directoryProvider;
// logging
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>
/// Gets the Search list
/// </summary>
public List<string> SearchList { get; }
/// <summary>
/// Initializes a new instance of the <see cref="FileSystemInterface"/> class.
/// </summary>
/// <param name="config"></param>
/// <param name="directoryProvider"></param>
public FileSystemInterface(ConfigHandling config, IDirectoryProvider directoryProvider)
{
_config = config;
_directoryProvider = directoryProvider;
SearchList = new List<string> { "No", "Value" };
//// Filling the Directory and search datatable
this.UpdateDirectoryList(directoryProvider);
}
/// <summary>
/// Searchs through all the entries
/// </summary>
/// <param name="searchtext">
/// The searchtext.
/// </param>
public void Search(string searchtext)
{
this.SearchList.Clear();
foreach (var file in _directoryProvider.GetFiles("*.gpg", SearchOption.AllDirectories))
{
if(Regex.IsMatch(file.Name, this.WildcardToRegex(searchtext), RegexOptions.IgnoreCase))
{
this.SearchList.Add(file.FullName);
}
}
if (SearchList.Count == 0)
{
this.SearchList.Add("No Value");
}
}
/// <summary>
/// Rebuilds the directory tree
/// </summary>
/// <param name="path">
/// The path.
/// </param>
/// <returns>
/// The <see cref="TreeNode"/>.
/// </returns>
public TreeNode[] UpdateDirectoryTree(IDirectoryProvider path = null)
{
if (path == null)
{
path = _directoryProvider;
}
List<TreeNode> nodeList = new List<TreeNode>();
var nodeName = new StringBuilder();
nodeName.Append(path.Name);
nodeName.AppendFormat(" ({0})", path.EnumerateFiles().Count());
var node = new TreeNode(nodeName.ToString()) { Tag = path.FullName };
foreach (var directory in path.GetDirectories())
{
if (!directory.Name.StartsWith("."))
{
var childNodes = UpdateDirectoryTree(directory);
node.Nodes.AddRange(childNodes);
}
}
nodeList.Add(node);
TreeNode[] nodeArr = nodeList.ToArray();
return nodeArr;
}
/// <summary>
/// Get's all the relevant files from the given directory
/// </summary>
/// <param name="directoryInfo">
/// The directory info structure of the location
/// </param>
/// <returns>
/// Returns a list with text, fullname, path
/// </returns>
public List<string> UpdateDirectoryList(IDirectoryProvider directoryInfo)
{
List<string> list = new List<string>();
foreach (var ffile in directoryInfo.GetFiles())
{
if (!ffile.Name.StartsWith("."))
{
if (ffile.Extension.ToLower() == ".gpg")
{
list.Add(Path.GetFileNameWithoutExtension(ffile.Name));
}
}
}
if (list.Count == 0)
{
return null;
}
return list;
}
private string WildcardToRegex(string pattern)
{
return ".*" + Regex.Escape(pattern)
.Replace(@"\*", ".*")
.Replace(@"\?", ".")
+ ".*";
}
}
}
================================================
FILE: Pass4Win/FodyWeavers.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<Costura>
</Costura>
<Costura/>
</Weavers>
================================================
FILE: Pass4Win/Genpass.Designer.cs
================================================
namespace Pass4Win
{
partial class Genpass
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Genpass));
this.txtGenPass = new System.Windows.Forms.TextBox();
this.btnCopy = new System.Windows.Forms.Button();
this.tbChars = new System.Windows.Forms.TrackBar();
this.lblChars = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.tbChars)).BeginInit();
this.SuspendLayout();
//
// txtGenPass
//
resources.ApplyResources(this.txtGenPass, "txtGenPass");
this.txtGenPass.Name = "txtGenPass";
this.txtGenPass.ReadOnly = true;
//
// btnCopy
//
resources.ApplyResources(this.btnCopy, "btnCopy");
this.btnCopy.Name = "btnCopy";
this.btnCopy.UseVisualStyleBackColor = true;
this.btnCopy.Click += new System.EventHandler(this.BtnCopyClick);
//
// tbChars
//
resources.ApplyResources(this.tbChars, "tbChars");
this.tbChars.Maximum = 50;
this.tbChars.Minimum = 8;
this.tbChars.Name = "tbChars";
this.tbChars.Value = 8;
this.tbChars.Scroll += new System.EventHandler(this.TbCharsScroll);
//
// lblChars
//
resources.ApplyResources(this.lblChars, "lblChars");
this.lblChars.Name = "lblChars";
//
// Genpass
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.lblChars);
this.Controls.Add(this.tbChars);
this.Controls.Add(this.btnCopy);
this.Controls.Add(this.txtGenPass);
this.Name = "Genpass";
((System.ComponentModel.ISupportInitialize)(this.tbChars)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox txtGenPass;
private System.Windows.Forms.Button btnCopy;
private System.Windows.Forms.TrackBar tbChars;
private System.Windows.Forms.Label lblChars;
}
}
================================================
FILE: Pass4Win/Genpass.cs
================================================
namespace Pass4Win
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Windows.Forms;
/// <summary>
/// Password generation form
/// </summary>
public partial class Genpass : Form
{
/// <summary>
/// Initializes a new instance of the <see cref="Genpass"/> class.
/// </summary>
[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1126:PrefixCallsCorrectly", Justification = "Reviewed. Suppression is OK here.")]
public Genpass()
{
InitializeComponent();
txtGenPass.Text = Pwgen.Generate(tbChars.Value);
lblChars.Text = tbChars.Value.ToString();
}
/// <summary>
/// Selector for password length.
/// </summary>
/// <param name="sender">
/// The sender.
/// </param>
/// <param name="e">
/// The event.
/// </param>
private void TbCharsScroll(object sender, EventArgs e)
{
txtGenPass.Text = Pwgen.Generate(tbChars.Value);
lblChars.Text = tbChars.Value.ToString();
}
/// <summary>
/// Copy the password to the clipboard
/// </summary>
/// <param name="sender">
/// The sender.
/// </param>
/// <param name="e">
/// The event.
/// </param>
private void BtnCopyClick(object sender, EventArgs e)
{
if (txtGenPass.Text != null)
{
Clipboard.SetText(new string(txtGenPass.Text.TakeWhile(c => c != '\n').ToArray()));
}
}
}
}
================================================
FILE: Pass4Win/Genpass.de.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name=">>btnCopy.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="lblChars.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="btnCopy.Location" type="System.Drawing.Point, System.Drawing">
<value>151, 82</value>
</data>
<data name=">>lblChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name=">>tbChars.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>Genpass</value>
</data>
<data name=">>txtGenPass.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="lblChars.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name=">>txtGenPass.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>tbChars.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>btnCopy.Name" xml:space="preserve">
<value>btnCopy</value>
</data>
<data name="tbChars.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 40</value>
</data>
<data name="txtGenPass.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 13</value>
</data>
<data name=">>btnCopy.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>435, 129</value>
</data>
<data name=">>lblChars.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="txtGenPass.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="btnCopy.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="lblChars.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 13</value>
</data>
<data name=">>tbChars.Name" xml:space="preserve">
<value>tbChars</value>
</data>
<data name="lblChars.Location" type="System.Drawing.Point, System.Drawing">
<value>390, 16</value>
</data>
<data name=">>tbChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.Size" type="System.Drawing.Size, System.Drawing">
<value>410, 45</value>
</data>
<data name=">>btnCopy.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name=">>txtGenPass.Name" xml:space="preserve">
<value>txtGenPass</value>
</data>
<data name=">>lblChars.Name" xml:space="preserve">
<value>lblChars</value>
</data>
<data name="lblChars.Text" xml:space="preserve">
<value>10</value>
</data>
<data name="btnCopy.Text" xml:space="preserve">
<value>In die Zwischenablage kopieren</value>
</data>
<data name=">>lblChars.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtGenPass.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 20</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Passwort generieren</value>
</data>
<data name="btnCopy.Size" type="System.Drawing.Size, System.Drawing">
<value>132, 23</value>
</data>
<data name=">>txtGenPass.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/Genpass.fr.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name=">>btnCopy.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="lblChars.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="btnCopy.Location" type="System.Drawing.Point, System.Drawing">
<value>151, 82</value>
</data>
<data name=">>lblChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name=">>tbChars.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>Genpass</value>
</data>
<data name=">>txtGenPass.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="lblChars.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name=">>txtGenPass.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>tbChars.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>btnCopy.Name" xml:space="preserve">
<value>btnCopy</value>
</data>
<data name="tbChars.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 40</value>
</data>
<data name="txtGenPass.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 13</value>
</data>
<data name=">>btnCopy.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>435, 129</value>
</data>
<data name=">>lblChars.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="txtGenPass.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="btnCopy.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="lblChars.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 13</value>
</data>
<data name=">>tbChars.Name" xml:space="preserve">
<value>tbChars</value>
</data>
<data name="lblChars.Location" type="System.Drawing.Point, System.Drawing">
<value>390, 16</value>
</data>
<data name=">>tbChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.Size" type="System.Drawing.Size, System.Drawing">
<value>410, 45</value>
</data>
<data name=">>btnCopy.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name=">>txtGenPass.Name" xml:space="preserve">
<value>txtGenPass</value>
</data>
<data name=">>lblChars.Name" xml:space="preserve">
<value>lblChars</value>
</data>
<data name="lblChars.Text" xml:space="preserve">
<value>10</value>
</data>
<data name="btnCopy.Text" xml:space="preserve">
<value>Copier vers le presse papier</value>
</data>
<data name=">>lblChars.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtGenPass.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 20</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Générer un mot de passe</value>
</data>
<data name="btnCopy.Size" type="System.Drawing.Size, System.Drawing">
<value>132, 23</value>
</data>
<data name=">>txtGenPass.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/Genpass.it.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name=">>btnCopy.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="lblChars.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="btnCopy.Location" type="System.Drawing.Point, System.Drawing">
<value>151, 82</value>
</data>
<data name=">>lblChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name=">>tbChars.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>Genpass</value>
</data>
<data name=">>txtGenPass.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="lblChars.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name=">>txtGenPass.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>tbChars.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>btnCopy.Name" xml:space="preserve">
<value>btnCopy</value>
</data>
<data name="tbChars.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 40</value>
</data>
<data name="txtGenPass.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 13</value>
</data>
<data name=">>btnCopy.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>435, 129</value>
</data>
<data name=">>lblChars.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="txtGenPass.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="btnCopy.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="lblChars.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 13</value>
</data>
<data name=">>tbChars.Name" xml:space="preserve">
<value>tbChars</value>
</data>
<data name="lblChars.Location" type="System.Drawing.Point, System.Drawing">
<value>390, 16</value>
</data>
<data name=">>tbChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.Size" type="System.Drawing.Size, System.Drawing">
<value>410, 45</value>
</data>
<data name=">>btnCopy.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name=">>txtGenPass.Name" xml:space="preserve">
<value>txtGenPass</value>
</data>
<data name=">>lblChars.Name" xml:space="preserve">
<value>lblChars</value>
</data>
<data name="lblChars.Text" xml:space="preserve">
<value>10</value>
</data>
<data name="btnCopy.Text" xml:space="preserve">
<value>Copia negli appunti</value>
</data>
<data name=">>lblChars.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtGenPass.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 20</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Genera Password</value>
</data>
<data name="btnCopy.Size" type="System.Drawing.Size, System.Drawing">
<value>132, 23</value>
</data>
<data name=">>txtGenPass.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/Genpass.nl.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
<xsd:attribute name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name=">>btnCopy.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="lblChars.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="btnCopy.Location" type="System.Drawing.Point, System.Drawing">
<value>151, 82</value>
</data>
<data name=">>lblChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name=">>tbChars.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>Genpass</value>
</data>
<data name=">>txtGenPass.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="lblChars.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name=">>txtGenPass.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>tbChars.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>btnCopy.Name" xml:space="preserve">
<value>btnCopy</value>
</data>
<data name="tbChars.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 40</value>
</data>
<data name="txtGenPass.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 13</value>
</data>
<data name=">>btnCopy.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>435, 129</value>
</data>
<data name=">>lblChars.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="txtGenPass.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="btnCopy.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="lblChars.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 13</value>
</data>
<data name=">>tbChars.Name" xml:space="preserve">
<value>tbChars</value>
</data>
<data name="lblChars.Location" type="System.Drawing.Point, System.Drawing">
<value>390, 16</value>
</data>
<data name=">>tbChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="tbChars.Size" type="System.Drawing.Size, System.Drawing">
<value>410, 45</value>
</data>
<data name=">>btnCopy.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name=">>txtGenPass.Name" xml:space="preserve">
<value>txtGenPass</value>
</data>
<data name=">>lblChars.Name" xml:space="preserve">
<value>lblChars</value>
</data>
<data name="lblChars.Text" xml:space="preserve">
<value>10</value>
</data>
<data name="btnCopy.Text" xml:space="preserve">
<value>Naar klembord kopiëren</value>
</data>
<data name=">>lblChars.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="txtGenPass.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 20</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Wachtwoord genereren</value>
</data>
<data name="btnCopy.Size" type="System.Drawing.Size, System.Drawing">
<value>132, 23</value>
</data>
<data name=">>txtGenPass.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/Genpass.resx
================================================
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name=">>btnCopy.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="btnCopy.Location" type="System.Drawing.Point, System.Drawing">
<value>151, 82</value>
</data>
<data name=">>lblChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="tbChars.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name=">>tbChars.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name=">>$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>435, 129</value>
</data>
<data name=">>$this.Name" xml:space="preserve">
<value>Genpass</value>
</data>
<data name=">>btnCopy.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name=">>txtGenPass.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="lblChars.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name=">>txtGenPass.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>tbChars.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>btnCopy.Name" xml:space="preserve">
<value>btnCopy</value>
</data>
<data name="tbChars.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 40</value>
</data>
<data name="txtGenPass.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 13</value>
</data>
<data name=">>btnCopy.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="btnCopy.Text" xml:space="preserve">
<value>Copy to Clipboard</value>
</data>
<data name=">>tbChars.Name" xml:space="preserve">
<value>tbChars</value>
</data>
<data name=">>lblChars.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="btnCopy.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="lblChars.Size" type="System.Drawing.Size, System.Drawing">
<value>19, 13</value>
</data>
<data name="lblChars.Location" type="System.Drawing.Point, System.Drawing">
<value>390, 16</value>
</data>
<data name=">>txtGenPass.Name" xml:space="preserve">
<value>txtGenPass</value>
</data>
<data name="tbChars.Size" type="System.Drawing.Size, System.Drawing">
<value>410, 45</value>
</data>
<data name="lblChars.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name=">>lblChars.Name" xml:space="preserve">
<value>lblChars</value>
</data>
<data name="txtGenPass.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="txtGenPass.Size" type="System.Drawing.Size, System.Drawing">
<value>371, 20</value>
</data>
<data name="lblChars.Text" xml:space="preserve">
<value>10</value>
</data>
<data name=">>lblChars.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name=">>tbChars.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Generate Password</value>
</data>
<data name="btnCopy.Size" type="System.Drawing.Size, System.Drawing">
<value>132, 23</value>
</data>
<data name=">>txtGenPass.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
================================================
FILE: Pass4Win/GitHandling.cs
================================================
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="" file="GitHandling.cs">
//
// </copyright>
// <summary>
// Class to interface with the Git Repo
// </summary>
//
// --------------------------------------------------------------------------------------------------------------------
namespace Pass4Win
{
using System;
using System.Linq;
using System.Net.Sockets;
using LibGit2Sharp;
using System.IO;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
/// <summary>
/// Class to interface with the Git Repo
/// </summary>
public class GitHandling : IDisposable
{
// logging
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>
/// The repo remote location object.
/// </summary>
private Repository gitRepo;
/// <summary>
/// The host.
/// </summary>
private string host;
/// <summary>
/// The repo location.
/// </summary>
private readonly string repoLocation;
/// <summary>
/// External or internal GIT.
/// When filled in it's external
/// </summary>
private readonly string ExternalGitPath;
/// <summary>
/// Initializes a new instance of the <see cref="GitHandling"/> class.
/// </summary>
/// <param name="repoLocation">
/// The repo location.
/// </param>
/// <param name="host">
/// The host.
/// </param>
public GitHandling(string repoLocation, string host, string GitLocation = "null")
{
log.Debug("Init GitHandling");
this.repoLocation = repoLocation;
this.ExternalGitPath = GitLocation;
if (GitLocation == "null")
this.host = host;
else
GetHost();
}
/// <summary>
/// The dispose function of this class.
/// </summary>
public void Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
private bool GetHost()
{
log.Debug("Getting host from external git executable");
string result = ExecuteGitCommand("remote -v");
Regex linkParser = new Regex(@"\b(?:https?://|git)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match m in linkParser.Matches(result))
this.host = m.Value;
return true;
}
/// <summary>
/// Checks if repo is valid.
/// </summary>
/// <param name="location">
/// The location.
/// </param>
/// <returns>
/// Sucess <see cref="bool"/>.
/// </returns>
public static bool IsValid(string location)
{
log.Debug("Check if repo is valid");
return Repository.IsValid(location);
}
/// <summary>
/// The check connection.
/// </summary>
/// <param name="hostName">
/// The host name.
/// </param>
/// <returns>
/// Succes or failure <see cref="bool"/>.
/// </returns>
public static bool CheckConnection(string hostName)
{
if (String.IsNullOrEmpty(hostName))
{
log.Debug("No remote host, connection check auto passed");
return true;
}
log.Debug("Check if we have a connection to the remote host");
Uri hostTest;
if (Uri.TryCreate(hostName, UriKind.Absolute, out hostTest))
{
var client = new TcpClient();
var client2 = new TcpClient();
var client3 = new TcpClient();
try
{
var gitAlive = true;
var httpsAlive = true;
var SSHAlive = true;
// Check Git connection
var result = client.BeginConnect(hostTest.Authority, 9418, null, null);
result.AsyncWaitHandle.WaitOne(TimeSpan.FromSeconds(1));
if (!client.Connected)
{
client.Close();
gitAlive = false;
}
// Check HTTPS
var result2 = client2.BeginConnect(hostTest.Authority, 443, null, null);
result2.AsyncWaitHandle.WaitOne(TimeSpan.FromSeconds(1));
if (!client2.Connected)
{
client2.Close();
httpsAlive = false;
}
// Check SSH
var result3 = client3.BeginConnect(hostTest.Authority, 22, null, null);
result3.AsyncWaitHandle.WaitOne(TimeSpan.FromSeconds(1));
if (!client3.Connected)
{
client3.Close();
SSHAlive = false;
}
if (gitAlive || httpsAlive || SSHAlive)
{
return true;
}
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
// fail
return false;
}
/// <summary>
/// The connect to repo.
/// </summary>
/// <returns>
/// The <see cref="bool" />.
/// </returns>
public bool ConnectToRepo()
{
log.Debug("Connect to repo");
if (CheckConnection(this.host) && Repository.IsValid(this.repoLocation))
{
if (File.Exists(ExternalGitPath))
{
return true;
}
else
{
try
{
this.gitRepo = new Repository(this.repoLocation);
// Making sure core.autocrlf = true
this.gitRepo.Config.Set("core.autocrlf", true);
return true;
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
}
return false;
}
private string ExecuteGitCommand(string command)
{
if (!File.Exists(this.ExternalGitPath))
{
log.Debug("Git executable not found!");
return ("fatal");
}
log.Debug("Executing: " + command);
ProcessStartInfo gitInfo = new ProcessStartInfo();
string output = string.Empty;
string error = string.Empty;
gitInfo.CreateNoWindow = true;
gitInfo.RedirectStandardError = true;
gitInfo.RedirectStandardOutput = true;
gitInfo.UseShellExecute = false;
gitInfo.FileName = this.ExternalGitPath;
Process gitProcess = new Process();
gitInfo.Arguments = command;
gitInfo.WorkingDirectory = this.repoLocation;
gitProcess.StartInfo = gitInfo;
gitProcess.Start();
using (System.IO.StreamReader myOutput = gitProcess.StandardOutput)
{
output = myOutput.ReadToEnd();
}
using (System.IO.StreamReader myError = gitProcess.StandardError)
{
error = myError.ReadToEnd();
}
gitProcess.WaitForExit();
gitProcess.Close();
// give the output or the error message
log.Debug("Git output: " + output);
log.Debug("Git error: " + error);
if (error.Length == 0) return output;
else return error;
}
/// <summary>
/// The git clone.
/// </summary>
/// <param name="username">
/// The username.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// return boolean <see cref="bool"/>.
/// </returns>
public bool GitClone(string username, string password)
{
log.Debug("Clone the remote repo");
if (File.Exists(ExternalGitPath))
{
// we don't do this if you have an external git program
}
else
{
try
{
Repository.Clone(
this.host,
this.repoLocation,
new CloneOptions
{
CredentialsProvider =
(url, user, cred) =>
new UsernamePasswordCredentials
{
Username = username,
Password = password
}
});
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
ConnectToRepo();
return true;
}
/// <summary>
/// Get's the latest and greatest from remote
/// </summary>
/// <param name="gitUser">
/// The Git User.
/// </param>
/// <param name="gitPass">
/// The Git Pass.
/// </param>
/// <returns>
/// A boolean that signals success
/// </returns>
public bool Fetch(string gitUser, string gitPass)
{
log.Debug("Fetch on remote repo");
if (File.Exists(ExternalGitPath))
{
string GitOutput = ExecuteGitCommand("pull");
bool result = Regex.IsMatch(GitOutput, "\\bfatal\\b", RegexOptions.IgnoreCase);
if (result == true)
{
return false;
}
}
else
{
try
{
var signature = new Signature(
"pass4win",
"pull@pass4win.com",
new DateTimeOffset(2011, 06, 16, 10, 58, 27, TimeSpan.FromHours(2)));
var fetchOptions = new FetchOptions
{
CredentialsProvider =
(url, user, cred) =>
new UsernamePasswordCredentials
{
Username = gitUser,
Password = gitPass
}
};
var mergeOptions = new MergeOptions();
var pullOptions = new PullOptions { FetchOptions = fetchOptions, MergeOptions = mergeOptions };
this.gitRepo.Network.Pull(signature, pullOptions);
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
return true;
}
/// <summary>
/// The commit.
/// </summary>
/// <param name="fileToCommit">
/// The file to commit.
/// </param>
/// <returns>
/// Result in boolean <see cref="bool"/>.
/// </returns>
public bool Commit(string fileToCommit = null)
{
log.Debug("Commit: " + fileToCommit);
// Stage the file
if (fileToCommit != null)
{
if (File.Exists(ExternalGitPath))
{
string GitOutput = ExecuteGitCommand("add " + fileToCommit);
bool result = Regex.IsMatch(GitOutput, "\\bfatal\\b", RegexOptions.IgnoreCase);
if (result == true)
{
return false;
}
GitOutput = ExecuteGitCommand("commit -m Pass4Win");
result = Regex.IsMatch(GitOutput, "\\bfatal\\b", RegexOptions.IgnoreCase);
if (result == true)
{
return false;
}
}
else
{
RepositoryStatus status = gitRepo.RetrieveStatus();
if (status.IsDirty)
{
try
{
gitRepo.Stage("*");
gitRepo.Commit(
"password changes",
new Signature("pass4win", "pass4win", DateTimeOffset.Now),
new Signature("pass4win", "pass4win", DateTimeOffset.Now));
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
}
}
// Commit
return true;
}
/// <summary>
/// Push function.
/// </summary>
/// <param name="gitUser">
/// The git user.
/// </param>
/// <param name="gitPass">
/// The git pass.
/// </param>
/// <returns>
/// Result in boolean <see cref="bool"/>.
/// </returns>
public bool Push(string gitUser, string gitPass)
{
log.Debug("Push commits");
if (File.Exists(ExternalGitPath))
{
string GitOutput = ExecuteGitCommand("push");
bool result = Regex.IsMatch(GitOutput, "\\bfatal\\b", RegexOptions.IgnoreCase);
if (result == true)
{
return false;
}
}
else
{
var tc = this.gitRepo.Diff.Compare<TreeChanges>(this.gitRepo.Branches["origin/master"].Tip.Tree, this.gitRepo.Head.Tip.Tree);
if (!tc.Any())
{
return true;
}
var remote = this.gitRepo.Network.Remotes["origin"];
var options = new PushOptions
{
CredentialsProvider =
(url, user, cred) =>
new UsernamePasswordCredentials
{
Username = gitUser,
Password = gitPass
}
};
var pushRefSpec = @"refs/heads/master";
try
{
this.gitRepo.Network.Push(remote, pushRefSpec, options);
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
return true;
}
/// <summary>
/// Removes a file from the Git repo
/// </summary>
/// <param name="removeFile">
/// The filename.
/// </param>
/// <returns>
/// result in boolean<see cref="bool"/>.
/// </returns>
public bool RemoveFile(string removeFile)
{
log.Debug("Remove: " + removeFile);
if (File.Exists(ExternalGitPath))
{
string GitOutput = ExecuteGitCommand("rm " + removeFile);
bool result = Regex.IsMatch(GitOutput, "\\bfatal\\b", RegexOptions.IgnoreCase);
if (result == true)
{
return false;
}
}
else
{
try
{
this.gitRepo.Remove(removeFile);
}
catch (Exception message)
{
log.Debug(message);
return false;
}
}
return true;
}
/// <summary>
/// Free the resources.
/// </summary>
/// <param name="disposing">
/// The disposing.
/// </param>
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
this.gitRepo.Dispose();
}
}
}
}
================================================
FILE: Pass4Win/KeyMgm.Designer.cs
================================================
namespace Pass4Win
{
partial class FrmKeyManager
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmKeyManager));
this.treeView1 = new System.Windows.Forms.TreeView();
this.listBox1 = new System.Windows.Forms.ListBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// treeView1
//
resources.ApplyResources(this.treeView1, "treeView1");
this.treeView1.Name = "treeView1";
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeView1AfterSelect);
//
// listBox1
//
resources.ApplyResources(this.listBox1, "listBox1");
this.listBox1.ContextMenuStrip = this.contextMenuStrip1;
this.listBox1.FormattingEnabled = true;
this.listBox1.Name = "listBox1";
//
// contextMenuStrip1
//
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addToolStripMenuItem,
this.removeToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
//
// addToolStripMenuItem
//
resources.ApplyResources(this.addToolStripMenuItem, "addToolStripMenuItem");
this.addToolStripMenuItem.Name = "addToolStripMenuItem";
this.addToolStripMenuItem.Click += new System.EventHandler(this.AddToolStripMenuItemClick);
//
// removeToolStripMenuItem
//
resources.ApplyResources(this.removeToolStripMenuItem, "removeToolStripMenuItem");
this.removeToolStripMenuItem.Name = "removeToolStripMenuItem";
this.removeToolStripMenuItem.Click += new System.EventHandler(this.RemoveToolStripMenuItemClick);
//
// FrmKeyManager
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.listBox1);
this.Controls.Add(this.treeView1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmKeyManager";
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem addToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem;
}
}
================================================
FILE: Pass4Win/KeyMgm.cs
================================================
/*
* Copyright (C) 2015 by Mike Bos
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* A copy of the license is obtainable at http://www.gnu.org/licenses/gpl-3.0.en.html#content
*/
namespace Pass4Win
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using GpgApi;
using LibGit2Sharp;
/// <summary>
/// The form Key manager
/// </summary>
public partial class FrmKeyManager : Form
{
private readonly FileSystemInterface _fileSystemInterface;
private readonly ConfigHandling _config;
private readonly KeySelect _keySelect;
/// <summary>
/// Initializes a new instance of the <see cref="FrmKeyManager"/> class.
/// </summary>
public FrmKeyManager(FileSystemInterface fileSystemInterface, ConfigHandling config, KeySelect keySelect)
{
_fileSystemInterface = fileSystemInterface;
_config = config;
_keySelect = keySelect;
InitializeComponent();
GpgInterface.ExePath = _config["GPGEXE"];
ListDirectory(treeView1);
}
/// <summary>
/// Filles the treenode.
/// </summary>
/// <param name="treeView">Which treeview to fill</param>
private void ListDirectory(TreeView treeView)
{
// Get the TreeView ready for node creation.
treeView.BeginUpdate();
treeView.Nodes.Clear();
TreeNode[] nodes = _fileSystemInterface.UpdateDirectoryTree();
treeView.Nodes.AddRange(nodes);
// Notify the TreeView to resume painting.
treeView.EndUpdate();
}
/// <summary>
/// Shows the gpg keys for that specific directory
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void TreeView1AfterSelect(object sender, TreeViewEventArgs e)
{
string tmpFile = treeView1.SelectedNode.Tag + "\\.gpg-id";
if (File.Exists(tmpFile))
{
listBox1.Items.Clear();
using (StreamReader r = new StreamReader(tmpFile))
{
string line;
while ((line = r.ReadLine()) != null)
{
listBox1.Items.Add(line);
}
}
listBox1.SelectedIndex = 0;
}
else
{
listBox1.Items.Clear();
listBox1.Items.Add(Strings.Error_keys_set);
}
}
/// <summary>
/// Adds a key to a selected directory
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void AddToolStripMenuItemClick(object sender, EventArgs e)
{
if (_keySelect.ShowDialog() == DialogResult.OK)
{
if (listBox1.Items[0].ToString() == Strings.Error_keys_set)
{
listBox1.Items.Clear();
}
listBox1.Items.Add(_keySelect.Gpgkey);
string tmpFile = Path.GetDirectoryName(_config["PassDirectory"]) + "\\" + treeView1.SelectedNode.FullPath + "\\.gpg-id";
using (StreamWriter w = new StreamWriter(tmpFile))
{
foreach (var line in listBox1.Items)
{
w.WriteLine(line.ToString());
}
}
DirectoryInfo path = new DirectoryInfo(Path.GetDirectoryName(_config["PassDirectory"]) + "\\" + treeView1.SelectedNode.FullPath);
foreach (var ffile in path.GetFiles())
{
if (!ffile.Name.StartsWith("."))
Recrypt(ffile.FullName);
}
ScanDirectory(path);
}
_keySelect.Close();
}
/// <summary>
/// Ensures the files in a given directory are encrypted with all the current keys.
/// </summary>
/// <param name="path">DirectoyInfo</param>
private void ScanDirectory(DirectoryInfo path)
{
foreach (var directory in path.GetDirectories())
{
if (!File.Exists(directory.FullName + "\\" + ".gpg-id"))
{
foreach (var ffile in directory.GetFiles().Where(ffile => !ffile.Name.StartsWith(".")))
{
this.Recrypt(ffile.FullName);
}
}
if (!directory.Name.StartsWith("."))
{
ScanDirectory(directory);
}
}
}
/// <summary>
/// Remove a GPG key from a directory
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void RemoveToolStripMenuItemClick(object sender, EventArgs e)
{
if (listBox1.Items[0].ToString() != Strings.Error_keys_set)
if (listBox1.Items.Count > 1)
{
listBox1.Items.Remove(listBox1.SelectedItem);
listBox1.Refresh();
string tmpFile = Path.GetDirectoryName(_config["PassDirectory"]) + "\\" + treeView1.SelectedNode.FullPath + "\\.gpg-id";
File.Delete(tmpFile);
using (StreamWriter w = new StreamWriter(tmpFile))
{
foreach (var line in listBox1.Items)
{
w.WriteLine(line.ToString());
}
}
using (var repo = new Repository(_config["PassDirectory"]))
{
repo.Stage(tmpFile);
repo.Commit("gpgid changed", new Signature("pass4win", "pass4win", DateTimeOffset.Now), new Signature("pass4win", "pass4win", DateTimeOffset.Now));
}
}
DirectoryInfo path = new DirectoryInfo(Path.GetDirectoryName(_config["PassDirectory"]) + "\\" + treeView1.SelectedNode.FullPath);
foreach (var ffile in path.GetFiles().Where(ffile => !ffile.Name.StartsWith(".")))
{
this.Recrypt(ffile.FullName);
}
ScanDirectory(path);
}
/// <summary>
/// Fires a decrypt thread with a callback the encrypts it again, used to make the keys current
/// </summary>
/// <param name="path"></param>
private void Recrypt(string path)
{
string tmpFile = Path.GetTempFileName();
GpgDecrypt decrypt = new GpgDecrypt(path, tmpFile);
{
// The current thread is blocked until the decryption is finished.
GpgInterfaceResult result = decrypt.Execute();
this.DecryptCallback(result, tmpFile, path);
}
}
/// <summary>
/// Callback from recrypt, ensures the file is encrypted again with the current keys
/// </summary>
/// <param name="result"></param>
/// <param name="tmpFile"></param>
/// <param name="path"></param>
private void DecryptCallback(GpgInterfaceResult result, string tmpFile, string path)
{
if (result.Status == GpgInterfaceStatus.Success)
{
List<KeyId> recipients = new List<KeyId>();
foreach (var line in listBox1.Items)
{
gitextract_uts1atzz/ ├── .gitattributes ├── .gitignore ├── .travis.yml ├── Config.json ├── LICENSE ├── Pass4Win/ │ ├── About.Designer.cs │ ├── About.cs │ ├── About.de.resx │ ├── About.fr.resx │ ├── About.it.resx │ ├── About.nl.resx │ ├── About.resx │ ├── App.config │ ├── CmdLineOptions.cs │ ├── ConfigHandling.cs │ ├── DirectoryProvider.cs │ ├── FileProvider.cs │ ├── FileSystemInterface.cs │ ├── FodyWeavers.xml │ ├── Genpass.Designer.cs │ ├── Genpass.cs │ ├── Genpass.de.resx │ ├── Genpass.fr.resx │ ├── Genpass.it.resx │ ├── Genpass.nl.resx │ ├── Genpass.resx │ ├── GitHandling.cs │ ├── KeyMgm.Designer.cs │ ├── KeyMgm.cs │ ├── KeyMgm.de.resx │ ├── KeyMgm.fr.resx │ ├── KeyMgm.it.resx │ ├── KeyMgm.nl.resx │ ├── KeyMgm.resx │ ├── KeySelect.Designer.cs │ ├── KeySelect.cs │ ├── KeySelect.de.resx │ ├── KeySelect.fr.resx │ ├── KeySelect.it.resx │ ├── KeySelect.nl.resx │ ├── KeySelect.resx │ ├── Main.Designer.cs │ ├── Main.cs │ ├── Main.de.resx │ ├── Main.fr.resx │ ├── Main.it.resx │ ├── Main.nl.resx │ ├── Main.resx │ ├── NativeMethods.cs │ ├── Pass4Win.FrmAbout.resources │ ├── Pass4Win.FrmConfig.resources │ ├── Pass4Win.FrmKeyManager.resources │ ├── Pass4Win.FrmMain.resources │ ├── Pass4Win.Genpass.resources │ ├── Pass4Win.KeySelect.resources │ ├── Pass4Win.Properties.Resources.resources │ ├── Pass4Win.Strings.resources │ ├── Pass4Win.csproj │ ├── Pass4WinConfig.json │ ├── Program.cs │ ├── Properties/ │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── Strings.Designer.cs │ ├── Strings.de.resx │ ├── Strings.fr.resx │ ├── Strings.it.resx │ ├── Strings.nl.resx │ ├── Strings.resx │ ├── config.Designer.cs │ ├── config.cs │ ├── config.de.resx │ ├── config.fr.resx │ ├── config.it.resx │ ├── config.nl.resx │ ├── config.resx │ ├── icon/ │ │ └── open-iconic-master/ │ │ ├── .gitignore │ │ ├── ICON-LICENSE │ │ ├── README.md │ │ └── bower.json │ ├── json/ │ │ └── Newtonsoft.Json.xml │ ├── packages.config │ ├── pass4win.il │ ├── pass4win.res │ └── pwgen.cs ├── Pass4Win.nsi ├── Pass4Win.sln ├── Pass4Win.xml ├── Pass4WinTests/ │ ├── ConfigHandlingTests.cs │ ├── FileSystemInterfaceTests.cs │ ├── FodyWeavers.xml │ ├── Pass4WinTests.csproj │ ├── Properties/ │ │ └── AssemblyInfo.cs │ ├── PwgenTests.cs │ ├── Setup.cs │ ├── app.config │ └── packages.config ├── Pass4Win_coverage.xml └── README.md
SYMBOL INDEX (182 symbols across 28 files)
FILE: Pass4Win/About.Designer.cs
class FrmAbout (line 3) | partial class FrmAbout
method Dispose (line 14) | protected override void Dispose(bool disposing)
method InitializeComponent (line 29) | private void InitializeComponent()
FILE: Pass4Win/About.cs
class FrmAbout (line 17) | public partial class FrmAbout : Form
method FrmAbout (line 21) | public FrmAbout(ConfigHandling config)
method RichTextBox1LinkClicked (line 35) | private void RichTextBox1LinkClicked(object sender, LinkClickedEventAr...
FILE: Pass4Win/CmdLineOptions.cs
class CmdLineOptions (line 5) | class CmdLineOptions
FILE: Pass4Win/ConfigHandling.cs
class ConfigHandling (line 9) | public class ConfigHandling
method ConfigHandling (line 25) | public ConfigHandling()
method Save (line 108) | public void Save()
method Delete (line 135) | public void Delete(string key)
method ResetConfig (line 144) | public void ResetConfig()
method PassValidTimeValidator (line 155) | public bool PassValidTimeValidator(int value)
method Load (line 162) | private void Load()
FILE: Pass4Win/DirectoryProvider.cs
type IDirectoryProvider (line 8) | public interface IDirectoryProvider
method GetFiles (line 10) | IFileProvider[] GetFiles();
method GetFiles (line 11) | IFileProvider[] GetFiles(string searchPattern, SearchOption searchOpti...
method EnumerateFiles (line 14) | IEnumerable<FileInfo> EnumerateFiles();
method GetDirectories (line 15) | IEnumerable<IDirectoryProvider> GetDirectories();
class DirectoryProvider (line 17) | public class DirectoryProvider : IDirectoryProvider
method DirectoryProvider (line 22) | public DirectoryProvider(ConfigHandling config)
method DirectoryProvider (line 35) | public DirectoryProvider(DirectoryInfo directoryInfo)
method GetFiles (line 40) | public IFileProvider[] GetFiles()
method GetFiles (line 47) | public IFileProvider[] GetFiles(string searchPattern, SearchOption sea...
method EnumerateFiles (line 64) | public IEnumerable<FileInfo> EnumerateFiles()
method GetDirectories (line 69) | public IEnumerable<IDirectoryProvider> GetDirectories()
FILE: Pass4Win/FileProvider.cs
type IFileProvider (line 5) | public interface IFileProvider
class FileProvider (line 11) | public class FileProvider : IFileProvider
method FileProvider (line 15) | public FileProvider(FileInfo fileInfo)
FILE: Pass4Win/FileSystemInterface.cs
class FileSystemInterface (line 29) | public class FileSystemInterface
method FileSystemInterface (line 47) | public FileSystemInterface(ConfigHandling config, IDirectoryProvider d...
method Search (line 64) | public void Search(string searchtext)
method UpdateDirectoryTree (line 89) | public TreeNode[] UpdateDirectoryTree(IDirectoryProvider path = null)
method UpdateDirectoryList (line 127) | public List<string> UpdateDirectoryList(IDirectoryProvider directoryInfo)
method WildcardToRegex (line 147) | private string WildcardToRegex(string pattern)
FILE: Pass4Win/Genpass.Designer.cs
class Genpass (line 3) | partial class Genpass
method Dispose (line 14) | protected override void Dispose(bool disposing)
method InitializeComponent (line 29) | private void InitializeComponent()
FILE: Pass4Win/Genpass.cs
class Genpass (line 11) | public partial class Genpass : Form
method Genpass (line 16) | [SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1126:PrefixCal...
method TbCharsScroll (line 33) | private void TbCharsScroll(object sender, EventArgs e)
method BtnCopyClick (line 48) | private void BtnCopyClick(object sender, EventArgs e)
FILE: Pass4Win/GitHandling.cs
class GitHandling (line 24) | public class GitHandling : IDisposable
method GitHandling (line 59) | public GitHandling(string repoLocation, string host, string GitLocatio...
method Dispose (line 74) | public void Dispose()
method GetHost (line 80) | private bool GetHost()
method IsValid (line 99) | public static bool IsValid(string location)
method CheckConnection (line 114) | public static bool CheckConnection(string hostName)
method ConnectToRepo (line 185) | public bool ConnectToRepo()
method ExecuteGitCommand (line 214) | private string ExecuteGitCommand(string command)
method GitClone (line 271) | public bool GitClone(string username, string password)
method Fetch (line 318) | public bool Fetch(string gitUser, string gitPass)
method Commit (line 370) | public bool Commit(string fileToCommit = null)
method Push (line 428) | public bool Push(string gitUser, string gitPass)
method RemoveFile (line 482) | public bool RemoveFile(string removeFile)
method Dispose (line 515) | protected virtual void Dispose(bool disposing)
FILE: Pass4Win/KeyMgm.Designer.cs
class FrmKeyManager (line 3) | partial class FrmKeyManager
method Dispose (line 14) | protected override void Dispose(bool disposing)
method InitializeComponent (line 29) | private void InitializeComponent()
FILE: Pass4Win/KeyMgm.cs
class FrmKeyManager (line 28) | public partial class FrmKeyManager : Form
method FrmKeyManager (line 37) | public FrmKeyManager(FileSystemInterface fileSystemInterface, ConfigHa...
method ListDirectory (line 52) | private void ListDirectory(TreeView treeView)
method TreeView1AfterSelect (line 69) | private void TreeView1AfterSelect(object sender, TreeViewEventArgs e)
method AddToolStripMenuItemClick (line 97) | private void AddToolStripMenuItemClick(object sender, EventArgs e)
method ScanDirectory (line 132) | private void ScanDirectory(DirectoryInfo path)
method RemoveToolStripMenuItemClick (line 155) | private void RemoveToolStripMenuItemClick(object sender, EventArgs e)
method Recrypt (line 191) | private void Recrypt(string path)
method DecryptCallback (line 208) | private void DecryptCallback(GpgInterfaceResult result, string tmpFile...
method EncryptCallback (line 239) | public void EncryptCallback(GpgInterfaceResult result, string tmpFile,...
FILE: Pass4Win/KeySelect.Designer.cs
class KeySelect (line 3) | partial class KeySelect
method Dispose (line 14) | protected override void Dispose(bool disposing)
method InitializeComponent (line 29) | private void InitializeComponent()
FILE: Pass4Win/KeySelect.cs
class KeySelect (line 19) | public partial class KeySelect : Form
method KeySelect (line 23) | public KeySelect(ConfigHandling config)
method KeySelectLoad (line 29) | private void KeySelectLoad(object sender, EventArgs e)
method BtnOkClick (line 47) | private void BtnOkClick(object sender, EventArgs e)
FILE: Pass4Win/Main.Designer.cs
class FrmMain (line 3) | partial class FrmMain
method Dispose (line 14) | protected override void Dispose(bool disposing)
method InitializeComponent (line 29) | private void InitializeComponent()
FILE: Pass4Win/Main.cs
class FrmMain (line 36) | public partial class FrmMain : Form
method FrmMain (line 66) | public FrmMain(FileSystemInterface fileSystemInterface, KeySelect keyS...
method WndProc (line 209) | protected override void WndProc(ref Message m)
method LatestPass4WinRelease (line 235) | public async void LatestPass4WinRelease()
method CopyToolStripMenuItemClick (line 261) | private void CopyToolStripMenuItemClick(object sender, EventArgs e)
method TxtPassDetailLeave (line 274) | private void TxtPassDetailLeave(object sender, EventArgs e)
method DecryptPass (line 352) | private void DecryptPass(string path, bool clear = true)
method EncryptCallback (line 380) | public void EncryptCallback(GpgInterfaceResult result, string tmpFile,...
method ShowHTML (line 423) | public void ShowHTML(String Markdown)
method DecryptCallback (line 436) | private void DecryptCallback(GpgInterfaceResult result, bool clear)
method EncryptConfig (line 474) | public static string EncryptConfig(string password, string salt)
method DecryptConfig (line 489) | public static string DecryptConfig(string cipher, string salt)
method EditToolStripMenuItemClick (line 504) | private void EditToolStripMenuItemClick(object sender, EventArgs e)
method RenameToolStripMenuItemClick (line 522) | private void RenameToolStripMenuItemClick(object sender, EventArgs e)
method DeleteToolStripMenuItemClick (line 588) | private void DeleteToolStripMenuItemClick(object sender, EventArgs e)
method ClipBoardClearThread (line 628) | private void ClipBoardClearThread()
method ClearClipboard (line 642) | private void ClearClipboard(object o)
method CreateNodes (line 668) | private void CreateNodes()
method FindTreeNodeText (line 683) | private TreeNode FindTreeNodeText(TreeNodeCollection nodes, string fin...
method DirTreeViewNodeMouseDoubleClick (line 701) | private void DirTreeViewNodeMouseDoubleClick(object sender, TreeNodeMo...
method BtnMakeVisibleClick (line 714) | private void BtnMakeVisibleClick(object sender, EventArgs e)
method FrmMainResize (line 725) | private void FrmMainResize(object sender, EventArgs e)
method ConfigSendOffline (line 745) | private void ConfigSendOffline(object sender, EventArgs e)
method ToolStripOfflineClick (line 763) | private void ToolStripOfflineClick(object sender, EventArgs e)
method CheckOnline (line 768) | private void CheckOnline(bool silent = false)
method FillFileList (line 820) | private void FillFileList(string path)
method OpenSystrayMenuItemClick (line 847) | private void OpenSystrayMenuItemClick(object sender, EventArgs e)
method NotifyIcon1MouseDoubleClick (line 853) | private void NotifyIcon1MouseDoubleClick(object sender, MouseEventArgs e)
method QuitSystrayMenuItemClick (line 859) | private void QuitSystrayMenuItemClick(object sender, EventArgs e)
method FrmMainFormClosing (line 864) | private void FrmMainFormClosing(object sender, FormClosingEventArgs e)
method ToolStripbtnAddClick (line 873) | private void ToolStripbtnAddClick(object sender, EventArgs e)
method ToolStripbtnKeyClick (line 915) | private void ToolStripbtnKeyClick(object sender, EventArgs e)
method ToolStripbtnConfigClick (line 920) | private void ToolStripbtnConfigClick(object sender, EventArgs e)
method OnChildClosing (line 930) | private void OnChildClosing(object sender, System.ComponentModel.Cance...
method ToolStripbtnAboutClick (line 935) | private void ToolStripbtnAboutClick(object sender, EventArgs e)
method ToolStripbtnQuitClick (line 940) | private void ToolStripbtnQuitClick(object sender, EventArgs e)
method ToolStriptextSearchTextChanged (line 945) | private void ToolStriptextSearchTextChanged(object sender, EventArgs e)
method TextDelayTick (line 951) | private void TextDelayTick(object sender, EventArgs e)
method ToolStripBtnGenPassClick (line 981) | private void ToolStripBtnGenPassClick(object sender, EventArgs e)
method CopyPassDetailMenuItemClick (line 990) | private void CopyPassDetailMenuItemClick(object sender, EventArgs e)
method KillTimer (line 996) | private void KillTimer()
method PassDetailMenuOpening (line 1003) | private void PassDetailMenuOpening(object sender, CancelEventArgs e)
method ToolStripUpdateButtonClick (line 1008) | private void ToolStripUpdateButtonClick(object sender, EventArgs e)
method ListFileViewMouseClick (line 1022) | private void ListFileViewMouseClick(object sender, MouseEventArgs e)
FILE: Pass4Win/NativeMethods.cs
class NativeMethods (line 10) | internal class NativeMethods
method PostMessage (line 14) | [DllImport("user32")]
method RegisterWindowMessage (line 16) | [DllImport("user32", CharSet = CharSet.Unicode)]
method SetProcessDPIAware (line 19) | [DllImport("user32.dll")]
FILE: Pass4Win/Program.cs
class Program (line 11) | internal static class Program
method Main (line 22) | [STAThread]
method RegisterTypes (line 97) | private static void RegisterTypes()
class ThreadExceptionHandler (line 117) | internal class ThreadExceptionHandler
method Application_ThreadException (line 122) | public void Application_ThreadException(
method ShowThreadExceptionDialog (line 154) | private DialogResult ShowThreadExceptionDialog(Exception ex)
FILE: Pass4Win/Properties/Resources.Designer.cs
class Resources (line 22) | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resource...
method Resources (line 31) | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Mic...
FILE: Pass4Win/Properties/Settings.Designer.cs
class Settings (line 14) | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
FILE: Pass4Win/Strings.Designer.cs
class Strings (line 22) | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resource...
method Strings (line 31) | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Mic...
FILE: Pass4Win/config.Designer.cs
class FrmConfig (line 3) | partial class FrmConfig
method Dispose (line 14) | protected override void Dispose(bool disposing)
method InitializeComponent (line 29) | private void InitializeComponent()
FILE: Pass4Win/config.cs
class FrmConfig (line 19) | public partial class FrmConfig : Form
method FrmConfig (line 23) | public FrmConfig(ConfigHandling config)
method OnSendOffline (line 96) | protected virtual void OnSendOffline(EventArgs e)
method TxtPassFolderClick (line 107) | private void TxtPassFolderClick(object sender, EventArgs e)
method TxtPassValidTimeLeave (line 121) | private void TxtPassValidTimeLeave(object sender, EventArgs e)
method TxtGpgClick (line 131) | private void TxtGpgClick(object sender, EventArgs e)
method ChkboxRemoteRepoCheckedChanged (line 145) | private void ChkboxRemoteRepoCheckedChanged(object sender, EventArgs e)
method TxtGitUserLeave (line 167) | private void TxtGitUserLeave(object sender, EventArgs e)
method TxtGitPassLeave (line 177) | private void TxtGitPassLeave(object sender, EventArgs e)
method TxtGitHostLeave (line 187) | private void TxtGitHostLeave(object sender, EventArgs e)
method TxtPassFolderValidating (line 197) | private void TxtPassFolderValidating(object sender, CancelEventArgs e)
method TxtPassValidTimeValidating (line 211) | private void TxtPassValidTimeValidating(object sender, CancelEventArgs e)
method TxtGpgValidating (line 241) | private void TxtGpgValidating(object sender, CancelEventArgs e)
method TxtGitUserValidating (line 255) | private void TxtGitUserValidating(object sender, CancelEventArgs e)
method TxtGitPassValidating (line 269) | private void TxtGitPassValidating(object sender, CancelEventArgs e)
method TxtGitHostValidating (line 284) | private void TxtGitHostValidating(object sender, CancelEventArgs e)
method FrmConfigFormClosing (line 324) | private void FrmConfigFormClosing(object sender, FormClosingEventArgs e)
method BtnSaveClick (line 337) | private void BtnSaveClick(object sender, EventArgs e)
method ExternalGit_CheckedChanged (line 342) | private void ExternalGit_CheckedChanged(object sender, EventArgs e)
FILE: Pass4Win/pwgen.cs
class Pwgen (line 25) | public class Pwgen
method Generate (line 63) | public static string Generate()
method Generate (line 77) | public static string Generate(int length)
method Generate (line 99) | public static string Generate(int minLength, int maxLength)
FILE: Pass4WinTests/ConfigHandlingTests.cs
class ConfigHandlingTests (line 7) | [TestFixture]
method BeforeTest (line 10) | [SetUp]
method ValueTypes (line 16) | [Test]
method ReferenceTypes (line 35) | [Test]
method SavingLoading (line 50) | [Test]
method Delete (line 66) | [Test]
FILE: Pass4WinTests/FileSystemInterfaceTests.cs
class FileSystemInterfaceTests (line 10) | [TestFixture]
method BeforeTest (line 13) | [SetUp]
method FindMixedCaseFileWIthLowerCaseSearch (line 19) | [Test]
method FindMixedCaseFileWithMixedCaseSearch (line 48) | [Test]
method FindAllFilesWithWildcardSearch (line 77) | [Test]
method CreateDirectoryTreeNodes (line 110) | [Test]
method GetFileList (line 134) | [Test]
FILE: Pass4WinTests/PwgenTests.cs
class PwgenTests (line 8) | [TestFixture()]
method GeneratePasswordWithTenCharactersTest (line 12) | [Test()]
method GeneratePasswordWithEightyCharactersTest (line 19) | [Test()]
FILE: Pass4WinTests/Setup.cs
class Setup (line 10) | static class Setup
method InitializeContainer (line 14) | static internal void InitializeContainer()
Condensed preview — 101 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (9,718K chars).
[
{
"path": ".gitattributes",
"chars": 2518,
"preview": "###############################################################################\n# Set default behavior to automatically "
},
{
"path": ".gitignore",
"chars": 2828,
"preview": "## Ignore Visual Studio temporary files, build results, and\n## files generated by popular Visual Studio add-ons.\n\n# User"
},
{
"path": ".travis.yml",
"chars": 273,
"preview": "language: csharp\nsolution: Pass4Win.sln\naddons:\n apt:\n packages:\n - nunit-console\ninstall:\n - pip install --user"
},
{
"path": "Config.json",
"chars": 45,
"preview": "{\n \"version\": \"1.1.1\",\n \"FirstRun\": true\n}\n"
},
{
"path": "LICENSE",
"chars": 35122,
"preview": "GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation,"
},
{
"path": "Pass4Win/About.Designer.cs",
"chars": 2425,
"preview": "namespace Pass4Win\n{\n partial class FrmAbout\n {\n /// <summary>\n /// Required designer variable.\n "
},
{
"path": "Pass4Win/About.cs",
"chars": 1368,
"preview": "/*\n * Copyright (C) 2015 by Mike Bos\n *\n * This program is free software; you can redistribute it and/or modify it unde"
},
{
"path": "Pass4Win/About.de.resx",
"chars": 10034,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/About.fr.resx",
"chars": 9957,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/About.it.resx",
"chars": 10058,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/About.nl.resx",
"chars": 9931,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/About.resx",
"chars": 10003,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/App.config",
"chars": 1186,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<configuration>\n <configSections>\n <section name=\"log4net\" type=\"log4net"
},
{
"path": "Pass4Win/CmdLineOptions.cs",
"chars": 480,
"preview": "using CommandLine;\n\nnamespace Pass4Win\n{\n class CmdLineOptions\n {\n [Option('d', \"debug\", DefaultValue = fa"
},
{
"path": "Pass4Win/ConfigHandling.cs",
"chars": 6046,
"preview": "namespace Pass4Win\n{\n using System;\n using System.Collections.Generic;\n using System.IO;\n using Newtonsoft."
},
{
"path": "Pass4Win/DirectoryProvider.cs",
"chars": 2129,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\n\nnamespace Pass4Win\n{\n public in"
},
{
"path": "Pass4Win/FileProvider.cs",
"chars": 756,
"preview": "using System.IO;\n\nnamespace Pass4Win\n{\n public interface IFileProvider\n {\n string Name { get; set; }\n "
},
{
"path": "Pass4Win/FileSystemInterface.cs",
"chars": 5125,
"preview": "/*\n * Copyright (C) 2015 by Mike Bos\n *\n * This program is free software; you can redistribute it and/or modify it unde"
},
{
"path": "Pass4Win/FodyWeavers.xml",
"chars": 101,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Weavers>\n <Costura>\n </Costura>\n <Costura/>\n \n</Weavers>"
},
{
"path": "Pass4Win/Genpass.Designer.cs",
"chars": 3279,
"preview": "namespace Pass4Win\n{\n partial class Genpass\n {\n /// <summary>\n /// Required designer variable.\n "
},
{
"path": "Pass4Win/Genpass.cs",
"chars": 1658,
"preview": "namespace Pass4Win\n{\n using System;\n using System.Diagnostics.CodeAnalysis;\n using System.Linq;\n using Syst"
},
{
"path": "Pass4Win/Genpass.de.resx",
"chars": 10253,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Genpass.fr.resx",
"chars": 10255,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Genpass.it.resx",
"chars": 10238,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Genpass.nl.resx",
"chars": 10246,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Genpass.resx",
"chars": 10255,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/GitHandling.cs",
"chars": 17315,
"preview": "// --------------------------------------------------------------------------------------------------------------------"
},
{
"path": "Pass4Win/KeyMgm.Designer.cs",
"chars": 4231,
"preview": "namespace Pass4Win\n{\n partial class FrmKeyManager\n {\n /// <summary>\n /// Required designer variable"
},
{
"path": "Pass4Win/KeyMgm.cs",
"chars": 9519,
"preview": "/*\n * Copyright (C) 2015 by Mike Bos\n *\n * This program is free software; you can redistribute it and/or modify it unde"
},
{
"path": "Pass4Win/KeyMgm.de.resx",
"chars": 10181,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeyMgm.fr.resx",
"chars": 10179,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeyMgm.it.resx",
"chars": 10172,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeyMgm.nl.resx",
"chars": 10172,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeyMgm.resx",
"chars": 10179,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeySelect.Designer.cs",
"chars": 2525,
"preview": "namespace Pass4Win\n{\n partial class KeySelect\n {\n /// <summary>\n /// Required designer variable.\n "
},
{
"path": "Pass4Win/KeySelect.cs",
"chars": 1617,
"preview": "/*\n * Copyright (C) 2015 by Mike Bos\n *\n * This program is free software; you can redistribute it and/or modify it unde"
},
{
"path": "Pass4Win/KeySelect.de.resx",
"chars": 8813,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeySelect.fr.resx",
"chars": 8813,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeySelect.it.resx",
"chars": 8813,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeySelect.nl.resx",
"chars": 8807,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/KeySelect.resx",
"chars": 8824,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Main.Designer.cs",
"chars": 20412,
"preview": "namespace Pass4Win\n{\n partial class FrmMain\n {\n /// <summary>\n /// Required designer variable.\n "
},
{
"path": "Pass4Win/Main.cs",
"chars": 38044,
"preview": "/*\n * Copyright (C) 2015 by Mike Bos\n *\n * This program is free software; you can redistribute it and/or modify it unde"
},
{
"path": "Pass4Win/Main.de.resx",
"chars": 1132498,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Main.fr.resx",
"chars": 1132484,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Main.it.resx",
"chars": 1132486,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Main.nl.resx",
"chars": 1132454,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Main.resx",
"chars": 1133906,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/NativeMethods.cs",
"chars": 706,
"preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.InteropServices;\nusing System.T"
},
{
"path": "Pass4Win/Pass4Win.csproj",
"chars": 20996,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"12.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.micros"
},
{
"path": "Pass4Win/Pass4WinConfig.json",
"chars": 45,
"preview": "{\n \"version\": \"1.1.1\",\n \"FirstRun\": true\n}\n"
},
{
"path": "Pass4Win/Program.cs",
"chars": 5791,
"preview": "using System;\nusing System.Windows.Forms;\nusing Autofac;\nusing System.Threading;\nusing log4net.Config;\nusing System.IO;"
},
{
"path": "Pass4Win/Properties/AssemblyInfo.cs",
"chars": 1495,
"preview": "using System.Resources;\nusing System.Reflection;\nusing System.Runtime.InteropServices;\n\n// General Information about an"
},
{
"path": "Pass4Win/Properties/Resources.Designer.cs",
"chars": 2779,
"preview": "//------------------------------------------------------------------------------\n// <auto-generated>\n// This code w"
},
{
"path": "Pass4Win/Properties/Resources.resx",
"chars": 5835,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Properties/Settings.Designer.cs",
"chars": 1063,
"preview": "//------------------------------------------------------------------------------\n// <auto-generated>\n// This code w"
},
{
"path": "Pass4Win/Properties/Settings.settings",
"chars": 194,
"preview": "<?xml version='1.0' encoding='utf-8'?>\n<SettingsFile xmlns=\"http://schemas.microsoft.com/VisualStudio/2004/01/settings\""
},
{
"path": "Pass4Win/Strings.Designer.cs",
"chars": 15004,
"preview": "//------------------------------------------------------------------------------\n// <auto-generated>\n// This code w"
},
{
"path": "Pass4Win/Strings.de.resx",
"chars": 11574,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Strings.fr.resx",
"chars": 11601,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Strings.it.resx",
"chars": 11483,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Strings.nl.resx",
"chars": 11368,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/Strings.resx",
"chars": 11252,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/config.Designer.cs",
"chars": 16990,
"preview": "namespace Pass4Win\n{\n partial class FrmConfig\n {\n /// <summary>\n /// Required designer variable.\n "
},
{
"path": "Pass4Win/config.cs",
"chars": 13175,
"preview": "/*\n * Copyright (C) 2015 by Mike Bos\n *\n * This program is free software; you can redistribute it and/or modify it unde"
},
{
"path": "Pass4Win/config.de.resx",
"chars": 28676,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/config.fr.resx",
"chars": 10069,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/config.it.resx",
"chars": 28644,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/config.nl.resx",
"chars": 28609,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/config.resx",
"chars": 29787,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n <!-- \n Microsoft ResX Schema \n \n Version 2.0\n \n The prim"
},
{
"path": "Pass4Win/icon/open-iconic-master/.gitignore",
"chars": 9,
"preview": ".DS_Store"
},
{
"path": "Pass4Win/icon/open-iconic-master/ICON-LICENSE",
"chars": 1073,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2014 Waybury\n\nPermission is hereby granted, free of charge, to any person obtaining"
},
{
"path": "Pass4Win/icon/open-iconic-master/README.md",
"chars": 3495,
"preview": "[Open Iconic v1.1.1](http://useiconic.com/open)\n===========\n\n### Open Iconic is the open source sibling of [Iconic](http"
},
{
"path": "Pass4Win/icon/open-iconic-master/bower.json",
"chars": 409,
"preview": "{\n \"name\": \"open-iconic\",\n \"description\": \"An open source icon set in SVG, webfont and raster formats\",\n \"version\": \""
},
{
"path": "Pass4Win/json/Newtonsoft.Json.xml",
"chars": 492287,
"preview": "<?xml version=\"1.0\"?>\n<doc>\n <assembly>\n <name>Newtonsoft.Json</name>\n </assembly>\n <members>\n <m"
},
{
"path": "Pass4Win/packages.config",
"chars": 986,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packages>\n <package id=\"Autofac\" version=\"4.2.1\" targetFramework=\"net46\" />\n "
},
{
"path": "Pass4Win/pass4win.il",
"chars": 2717944,
"preview": "\n// Microsoft (R) .NET Framework IL Disassembler. Version 4.6.81.0\n// Copyright (c) Microsoft Corporation. All righ"
},
{
"path": "Pass4Win/pwgen.cs",
"chars": 9491,
"preview": "/*\n * This code is based on http://www.obviex.com/Samples/Password.aspx\n * Copyright (C) 2004 Obviex(TM). All rights re"
},
{
"path": "Pass4Win.nsi",
"chars": 6830,
"preview": "#\n# Pass4Win NSIS script\n#\n\n!define src_dir \".\"\n\n!define APPNAME \"Pass4Win\"\n!define DESCRIPTION \"Windows version of Pass"
},
{
"path": "Pass4Win.sln",
"chars": 2834,
"preview": "\nMicrosoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio 14\nVisualStudioVersion = 14.0.25420.1\nMini"
},
{
"path": "Pass4Win.xml",
"chars": 2646,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<iasettings>\n <projectproperties>\n <manufacturer>Mike Bos</manufacturer>\n "
},
{
"path": "Pass4WinTests/ConfigHandlingTests.cs",
"chars": 2078,
"preview": "namespace Pass4WinTests\n{\n using System;\n using NUnit.Framework;\n using Pass4Win;\n\n [TestFixture]\n publi"
},
{
"path": "Pass4WinTests/FileSystemInterfaceTests.cs",
"chars": 6582,
"preview": "using System.Collections.Generic;\nusing System.IO;\nusing Autofac;\nusing Moq;\nusing NUnit.Framework;\nusing Pass4Win;\n\nna"
},
{
"path": "Pass4WinTests/FodyWeavers.xml",
"chars": 60,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Weavers>\n</Weavers>"
},
{
"path": "Pass4WinTests/Pass4WinTests.csproj",
"chars": 8100,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"14.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.micros"
},
{
"path": "Pass4WinTests/Properties/AssemblyInfo.cs",
"chars": 1360,
"preview": "using System.Reflection;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled "
},
{
"path": "Pass4WinTests/PwgenTests.cs",
"chars": 578,
"preview": "namespace Pass4Win.Tests\n{\n using NUnit.Framework;\n\n /// <summary>\n /// The pwgen tests.\n /// </summary>\n "
},
{
"path": "Pass4WinTests/Setup.cs",
"chars": 847,
"preview": "\n\nnamespace Pass4WinTests\n{\n using System.IO;\n using Autofac;\n using Moq;\n using Pass4Win;\n\n static clas"
},
{
"path": "Pass4WinTests/app.config",
"chars": 1659,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<configuration>\n <runtime>\n <assemblyBinding xmlns=\"urn:schemas-microsoft-co"
},
{
"path": "Pass4WinTests/packages.config",
"chars": 404,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<packages>\n <package id=\"Autofac\" version=\"4.2.1\" targetFramework=\"net46\" />\n "
},
{
"path": "Pass4Win_coverage.xml",
"chars": 6367,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<CoverageSession xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://w"
},
{
"path": "README.md",
"chars": 1387,
"preview": "# Pass4Win\n[](https:"
}
]
// ... and 9 more files (download for full content)
About this extraction
This page contains the full source code of the mbos/Pass4Win GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 101 files (9.1 MB), approximately 2.4M tokens, and a symbol index with 182 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.