Convertfrom-securestring not working as expected

I am in need of a sanity check. Convertfrom-securestring is giving me a different output each time. Same user account, same powershell window infact. Im only running the cmdlet again against the same securestring…See output.

PS C:Usersuser> $password = “test”

PS C:Usersuser> $securestring = $password| ConvertTo-SecureString -AsPlainText -Force

PS C:Usersuser> $securestring | ConvertFrom-SecureString

01000000d08c9ddf0115d1118c7a00c04fc297eb01000000544bf5dc2428984185ed51f2d4ab98b00000000002000000000003660000c0000000100000006f4c40f1e20be6c3566a7e238e6566d90000000004800000a000000010000000ae0dcbdafbc14a967244062025aa409f10000000474c2fc98f467d07605eeb351c34bf821400000059d469fa54fdadd6e33ff7c002148882ca195482

PS C:Usersuser> $securestring | ConvertFrom-SecureString

01000000d08c9ddf0115d1118c7a00c04fc297eb01000000544bf5dc2428984185ed51f2d4ab98b00000000002000000000003660000c000000010000000e4f01a6ced05242055ec6de958cbf7440000000004800000a000000010000000c2091d22435455075be1f2c6495c76f410000000675108df38f0c06b16f7c48fb24a64b914000000e40c84e0d223e5c93c0cc9dbcd6e112b3ff517bd

PS C:Usersuser> $securestring | ConvertFrom-SecureString

01000000d08c9ddf0115d1118c7a00c04fc297eb01000000544bf5dc2428984185ed51f2d4ab98b00000000002000000000003660000c000000010000000718437258213c33c30917b82fef6c1ea0000000004800000a00000001000000000eb82ec3a393cea830d0e05d15277e6100000000fdb0196e1ec63e512c7872a856b1a121400000048a719bcf39aeaf7c9fd0621b0bf0244f472cfba

PS C:Usersuser> $securestring | ConvertFrom-SecureString

01000000d08c9ddf0115d1118c7a00c04fc297eb01000000544bf5dc2428984185ed51f2d4ab98b00000000002000000000003660000c000000010000000ace72724df30d544c7a3a5980fbb030b0000000004800000a00000001000000042a2028cf09ffc73b4f83e4426e89daf10000000a9ea3b023a0eb0ef1c7293d9983be646140000004cc75c0d1ea9cb77c11724cfbb30eeb0baf66435

Am i going insane, or is something not working? I am getting the same issue on 2 different user accounts on 2 different machines.

submitted by /u/ArchitectIT
[link] [comments]

Leave a Reply