mbos / pass4win Goto Github PK
View Code? Open in Web Editor NEWWindows version of Pass (http://www.passwordstore.org/)
License: GNU General Public License v3.0
Windows version of Pass (http://www.passwordstore.org/)
License: GNU General Public License v3.0
An unhandled exception of type 'System.TypeInitializationException' occurred in LibGit2Sharp.dll
Additional information: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
This happens at the call to Repository.IsValid. Version mismatch perhaps? Might be related to my issue #35.
In the following style:
https://msdn.microsoft.com/en-us/library/5ast78ax.aspx
///
After starting for the first time it asks for a remote https repo. But if I leave if blank (like I am told in the header of the window), the app crashes.
If you choose to have a remote the installer requires the remote to be online even when there is already a populated password store.
The UI for later use requires going into the Config and clicking "use remote git repo" again. Ideally there would simply be a "sync now" button/menu/something. Or a "go online".
Here is the screen recording (https://youtu.be/WstL72XXyLw) and the crash log:.
如需叫用 Just-In-Time (JIT) 偵錯的詳細資料,
請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。
************** 例外狀況文字 **************
System.NullReferenceException: 並未將物件參考設定為物件的執行個體。
於 Pass4Win.frmMain.txtPass_KeyDown(Object sender, KeyEventArgs e)
於 System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
於 System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
於 System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
於 System.Windows.Forms.Control.WmKeyChar(Message& m)
於 System.Windows.Forms.Control.WndProc(Message& m)
於 System.Windows.Forms.TextBoxBase.WndProc(Message& m)
於 System.Windows.Forms.TextBox.WndProc(Message& m)
於 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
於 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
於 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已載入的組件 **************
mscorlib
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Pass4Win
組件版本: 1.0.0.0
Win32 版本: 1.0.0.0
程式碼庫: file:///C:/Program%20Files%20(x86)/Mike%20Bos/Pass4win/Pass4Win.exe
----------------------------------------
System.Windows.Forms
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34250 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34239 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34230 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
LibGit2Sharp
組件版本: 0.21.0.176
Win32 版本: 0.21.0.176
程式碼庫: file:///C:/Program%20Files%20(x86)/Mike%20Bos/Pass4win/LibGit2Sharp.DLL
----------------------------------------
GpgApi
組件版本: 1.5.0.0
Win32 版本: 1.5.0.0
程式碼庫: file:///C:/Program%20Files%20(x86)/Mike%20Bos/Pass4win/GpgApi.DLL
----------------------------------------
System.Configuration
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Windows.Forms.resources
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.36213 built by: FX452RTMLDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Security
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34248 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
System.Numerics
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
mscorlib.resources
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.33440 built by: FX45W81RTMREL
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** JIT 偵錯 **************
若要啟用 Just-In-Time (JIT) 偵錯功能,則必須在
此應用程式或電腦的 .config 檔案中,設定
system.windows.forms 區段內的 jitDebugging 值。
且該應用程式也必須在啟用偵錯的狀態下進行
編譯。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
當 JIT 偵錯功能啟用後,會將所有未處理的例外狀況
傳送給電腦上已註冊的 JIT 偵錯工具進行處
理,而不是使用這個對話方塊來處理。
There is still a c:\program files\x86\Pass4Win folder which contains a NativeBinaries folder containing dlls.
It was WAY easier to run git in hub mode on my Linux box long enough to sync than to install and set up a web server, fast cgi, et al just to have a http(s) accessible git repo.
Please update the documentation and the UI.
Thanks for the app.
According to the window title, I should leave the remote field blank to not use a remote. So I do, and then nothing happens. The program just closes.
Background: I want to access my passwords. My password store was created on a Linux installation, and I want to use Windows for gaming purposes, and store my game passwords in the same password store. I'm keeping things synchronized using rsync, so there's no direct need for a git remote on Windows.
Hi
I have an existing pass repository that I cannot add passwords to. Using the 1.0.7 installer I can point to the newly cloned repo, and read all the passwords as I am supposed to.
When adding a password the program crashes with:
************** Exception Text **************
LibGit2Sharp.EmptyCommitException: No changes; nothing to commit.
at LibGit2Sharp.Repository.Commit(String message, Signature author, Signature committer, CommitOptions options)
at Pass4Win.frmMain.Encrypt_Callback(GpgInterfaceResult result, String tmpFile, String tmpFile2, String path)
at Pass4Win.frmMain.txtPassDetail_Leave(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnLeave(EventArgs e)
at System.Windows.Forms.Control.NotifyLeave()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
Any ideas?
The remote password field is clear text and should not be. It would be ok if it had a checkbox for "show password" or the like but it should not show by default.
So I've installed Pass4Win but can't get it to run. When I point it to my existing Git repository for the password store (ssh-based), it crashes after asking for a username and password. When I try to set it up in an empty directory, it requests a git https-style address - is it possible to add support for ssh-based connections?
Regards,
Steffen
Would be useful for debugging program if these were made clear.
Hi,
I have a pass git with multiple key.
I cannot read password create by others, and the password I create using Pass4win is only readable by me.
(All works correctly using pass in cygwin)
Do you want some debug ?
thanks
cedric
When presented with the configuration screen if you check the "Use a remote git repo" check box and start to enter a user name it is impossible to deselect this option. You cannot move from Git Password to Git Username without typing a password and if you delete the user name you cannot move out of that text entry box. All the entry restrictions should not disable the ability to navigate through the window. They should only stop you from clicking save.
To reproduce:
Here is the crash log:
如需叫用 Just-In-Time (JIT) 偵錯的詳細資料,
請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。
************** 例外狀況文字 **************
LibGit2Sharp.EmptyCommitException: No changes; nothing to commit.
於 LibGit2Sharp.Repository.Commit(String message, Signature author, Signature committer, CommitOptions options)
於 Pass4Win.frmMain.Encrypt_Callback(GpgInterfaceResult result, String tmpFile, String tmpFile2, String path)
於 Pass4Win.frmMain.txtPassDetail_Leave(Object sender, EventArgs e)
於 System.Windows.Forms.Control.OnLeave(EventArgs e)
於 System.Windows.Forms.Control.NotifyLeave()
於 System.Windows.Forms.ContainerControl.UpdateFocusedControl()
************** 已載入的組件 **************
mscorlib
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Pass4Win
組件版本: 1.0.0.0
Win32 版本: 1.0.0.0
程式碼庫: file:///C:/Program%20Files%20(x86)/Mike%20Bos/Pass4win/Pass4Win.exe
----------------------------------------
System.Windows.Forms
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34250 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34239 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34230 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
LibGit2Sharp
組件版本: 0.21.0.176
Win32 版本: 0.21.0.176
程式碼庫: file:///C:/Program%20Files%20(x86)/Mike%20Bos/Pass4win/LibGit2Sharp.DLL
----------------------------------------
GpgApi
組件版本: 1.5.0.0
Win32 版本: 1.5.0.0
程式碼庫: file:///C:/Program%20Files%20(x86)/Mike%20Bos/Pass4win/GpgApi.DLL
----------------------------------------
System.Configuration
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Windows.Forms.resources
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.36213 built by: FX452RTMLDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Security
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34248 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
System.Numerics
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.34209 built by: FX452RTMGDR
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
mscorlib.resources
組件版本: 4.0.0.0
Win32 版本: 4.0.30319.33440 built by: FX45W81RTMREL
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** JIT 偵錯 **************
若要啟用 Just-In-Time (JIT) 偵錯功能,則必須在
此應用程式或電腦的 .config 檔案中,設定
system.windows.forms 區段內的 jitDebugging 值。
且該應用程式也必須在啟用偵錯的狀態下進行
編譯。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
當 JIT 偵錯功能啟用後,會將所有未處理的例外狀況
傳送給電腦上已註冊的 JIT 偵錯工具進行處
理,而不是使用這個對話方塊來處理。
It took me a bit to find the "Mike Bos" folder :-)
Year is 2105 instead of 2015.
If this is from the future, I had hoped for more progress in UI design :-)
Check if the password store is valid and what happens when it is an empty directory
My passwords are stored in multiline files that look like:
password
Username: some_user
URL: https://example.com
The UI shows all of my passwords all of the time.
now email#keyid wanted email (keyid)
This makes it easier to test upgrades, etc.
1.0.3 is missing the git2 dll. This may be why my system was misbehaving. I can no longer reproduce it once I started trying to debug it.
When running uninstall.exe /S, a messagebox appears asking if i permanently want to remove pass4win.
Clipboard does not work after the password is cleared until the application has been closed; I can't copy and paste anything. I am using Windows 10. Fairly certain I am using the latest version of Pass4Win.
Less clicks currently:
Add
type name + enter
search name
edit or make visible
add password
done
Should be:
Add
type name + enter
type password
done
Did something, stuff crashed now it skips the dialogue to set the remote repo - instantly goes to username / password then closes without any word ^^
Am on Windows 10 btw.
This happens when I try to create my first password.
Before running this command my terminal was showing this: ~/pass (master #)
which means that it is a proper git repo. After running this command it now shows: ~/pass ((ref: re...))
and I have no idea what that means. When I try to run git status
it tells me fatal: Not a git repository
.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
LibGit2Sharp.RepositoryNotFoundException: Path 'C:\Users\tylor\pass' doesn't point at a valid Git repository or workdir.
at LibGit2Sharp.Core.Proxy.git_repository_open(String path)
at LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options)
at Pass4Win.frmMain.btnAdd_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Pass4Win
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pass4Win/Pass4Win.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
LibGit2Sharp
Assembly Version: 0.21.0.176
Win32 Version: 0.21.0.176
CodeBase: file:///C:/Program%20Files%20(x86)/Pass4Win/LibGit2Sharp.DLL
----------------------------------------
GpgApi
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Pass4Win/GpgApi.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34252 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
SSH is much safer, and most pass
users would have it on their systems already.
Original pass program is a shell script. I wonder if all this knowledge could be used to implement pass program in C#, and have it working on multiple platforms.
I could not get the UI to work, it throws some random errors. Got three different things already.
Even when running on an en_US system.
I often have quite a few apps running. Finding the open Pass4Win window is a bit annoying.
Have you used something like pwsafe? It implements a really handy tray icon. You click it and the main window appears after you have unlocked it. Closing that window does not exit the app.
It would be nice to have similar functionality here. I am a Unix coder or this would be a pull request instead of an issue. Maybe someone else will jump on it before I get to it :-)
Error handling around timer events
The exception says:
An unhandled exception of type 'LibGit2Sharp.LibGit2SharpException' occurred in LibGit2Sharp.dll
Additional information: Failed to connect to <my ellided host name>:
What version do I have? How old is it? Where did I get this from, it has been a year.....
drop the .exe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.