This project is read-only.

Password Protected Stron-Name Key Support

Aug 31, 2012 at 6:49 PM

Is there plan to support password-protected strong-name key files (pfx)?

Or does it support this already?

Sep 1, 2012 at 7:00 AM


I just added a quick support of pfx in changeset 76548.

Oct 1, 2013 at 2:45 AM
Edited Oct 1, 2013 at 2:49 AM
Had to look at the source code for working this out, but hope this helps someone else trying to use PFX with Confuser (Options -> Strong name key):
  • To use as password protected PFX via the Confuser UI, you first select the PFX file using the "..." button for "Strong name key".
  • Then go to the end of the textbox (now showing the file path of the PFX you just selected) and add a "|" separator before typing in your password to the PFX
  • Now you should be all ready to go... :D
If you don't specify the password to your PFX in this way, at the moment Confuser will not prompt you with a very useful message (or even ask you to enter your password). Instead, it crashes with this message:
Oops... Confuser crashed...

Message : Unable to obtain public key for StrongNameKeyPair.
Stack Trace :
   at System.Reflection.StrongNameKeyPair.nGetPublicKey(Boolean exported, Byte[] array, String container)
   at System.Reflection.StrongNameKeyPair.get_PublicKey()
   at Confuser.Core.Confuser.Initialize() in d:\TeamCity\buildAgent\work\9cfb3a0868f86c70\Confuser.Core\Confuser.cs:line 568
   at Confuser.Core.Confuser.Confuse(ConfuserParameter param) in d:\TeamCity\buildAgent\work\9cfb3a0868f86c70\Confuser.Core\Confuser.cs:line 257

Please report it!!!
Btw... interesting tool! Thanks for open sourcing it! :D