You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS v5 compatibility fix
Several internal functions had parameters named $IV (for Initialization Vector), which conflicts with the alias for the new -InformationVariable common parameter.
Fixes#13
Updated build script
So it'll stop crapping out trying to remove / overwrite Security.Cryptography.dll if I have the module imported already. DLL is now signed right in the source control repo, and the build script no longer overwrites that signature, so its hash doesn't change and the build script won't try to copy it.
Automatic detection of decryption certificates
The Certificate parameter of Unprotect-Data is no longer mandatory. If a matching certificate is found in the Personal store of either the user or the machine (and the private key is accessible in either location), then that cert will automatically be used to decrypt.
Also fixed a bug that was producing KeyData objects that were hashtables instead of PSCustomObjects when encrypting data with an ECDH certificate. (All of the code still works either way, but it was inconsistent.)