Powershell: Converting encrypted strings to plaintext (I.E. SafePassword or SafePrivateKeyData)
0 vote
In the interests of avoiding a hack like this https://forum.devolutions.net/topics/34612/retrieving-private-key-from-a-private-key-credential-session
Can we get a switch added to Get-RDMSessionProperty that will output plaintext of any encrypted field? Similar to the manner in which Get-RDMSessionPassword functions.
This seems more straightforward than trying to create dedicated cmdlets for each property that might need to be converted from encrypted to plaintext. While dedicated cmdlets would be preferred, that would probably take much more development time. This could be a short to mid term solution until better options are available.
Or alternately, just a separate cmdlet for converting RDM encrypted strings to plaintext. My solution in the link above seems to make it clear the that the same encryption is used for "all" of these encrypted string fields.
Hello,
We will add this to our to do list. Once an update will be available, we will post it here.
Thank you for this request.
Best regards,
Érica Poirier