Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted Favourites Passwords #259

Open
julianhall opened this issue Sep 7, 2022 · 3 comments
Open

Corrupted Favourites Passwords #259

julianhall opened this issue Sep 7, 2022 · 3 comments

Comments

@julianhall
Copy link

Hi, I've been working on this for a few days now and am giving up, unless someone can help.

I attempted to open my terminals as normal, and was sent through the original setup screens all of a sudden.

If I attempt to view the settings on a favourite with a saved password - i get the following
image

Looking at the logs: I can see the following:

INFO 2022-09-07 08:58:11,697 256ms Terminals TryLoadFile - Loading History from: D:\_dev\terminals\Data\History.xml ERROR 2022-09-07 08:58:16,578 5137ms Terminals DecryptPassword - Error Decrypting Password System.Exception: Error while writing encrypted data to the stream: Padding is invalid and cannot be removed. at Unified.Encryption.Decryptor.Decrypt(Byte[] bytesData, Byte[] bytesKey) at Terminals.Security.PasswordFunctions2.DecryptPassword(String encryptedPassword, Byte[] passwordKey) at Terminals.Security.PasswordFunctions2.DecryptPassword(String encryptedPassword, String keyMaterial)

I've attempted to replace the files in the Data folder with a backup of:
Favourites.xml
History.xml
Terminals.config
ToolStrip.settings.config

but still all my saved passwords are corrupted.

ANY help on how to restore this would be greatly appreciated.

@ocpforme
Copy link

ocpforme commented Oct 8, 2022

Got the exact same thing happening to me. The issue is with a Group Policy change that enabled FipsAlgorithmPolicy. I changed the 1 value in the registry to zero and it worked. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy]
"Enabled"=dword:00000000

The log had the error:
ERROR 2022-10-07 10:33:24,438 8547ms Terminals DecryptPassword - Error Decrypting Password
System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

Searched for the error and found several tips about the registry fix. Tried it and it worked. Back in Business

@jirkapok
Copy link
Contributor

jirkapok commented Feb 2, 2023

This requires check of FIPS policy, Terminals is NOT FIPS compliant.
It needs research for possible solutions.

@roberto-ciccariello
Copy link

I have the same issue but in my case in the registry I already have this value set to 0 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy]
"Enabled"=dword:00000000

Someone resolved in other ways?

Where do I find the log of Terminals?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants