how to read a secure channel

Here is the Powershell command to read a secure channel.

Example

$ ptr = [System.Runtime.InteropServices.Marshal] :: SecureStringToBSTR ($ chaine_secu) 
$ string = [System.Runtime.InteropServices.Marshal] :: PtrToStringUni ($ ptr)

Copy and Try it