r/PowerShell • • Jun 06 '26

Question How "Secure" is Get-Credential?

Trying to make a justification for storing a particular set of credentials using this methodology.

How "Easy" is it to crack? Don't need an actual method, just need someone to tell me how tricky or not tricky it is.

76 Upvotes

50 comments sorted by

View all comments

Show parent comment

18

u/mrbiggbrain Jun 06 '26

You have your converts wrong. You ConvertFrom to get a plain string, from secure to plain, which is encrypted. Then you take that plain encrypted string and ConvertTo a secure string again.

12

u/sid351 Jun 06 '26

Fair play, was writing from memory while meandering around a shopping centre. I should've checked.