Cryptography

G

Guest

Hi Guys

I am developing an all in one shell for remote control of our office PCs.
The shell offers remote desktop V5 or 6, vnc, ultra vnc & remote assistance
all from one shell and offers a treeview browsing tool integrated with the
active directory to select the computer to remote control. The problem I am
having is with remote desktop V5. My program creates an .rdp file and then
passes this as a parameter to the remote desktop app. What I am trying to do
is create the encrypted password field in the file. I am using the
System.Security.Cryptography namespace and the ProtectedData.Protect &
ProtectedData.Unprotect methods. I can succesfully decrypt a password from a
file created with the remote desktop V5 application but when I try to encrypt
a password to write a new file the encrypted string I create is much shorter
than that of the remote desktop app and the remote desktop application
ignores it when I use it to edit the file created by my program.

Here is an example of the fields.

Created by remote desktop V5 app:

51:b:01000000D08C9DDF0115D1118C7A00C04FC297EB010000005B3176C7ECC63D47B688507F77BD58330000000008000000700073007700000003660000A8000000100000006C02475A975CBB6765D24B0BF4BA56CE0000000004800000A00000001000000002D7AE3D7D9B3F7FDE19786FE76E078308020000D79DDA48D50D3F0878CA29CC743013535B5A9E4D975557D10006B98A8393ECA4126E269A20E51563231833C1298475D3ABD77E1F127C6EF044E1C5AA733503F0D05DEB35AC0B19708FD2F64B585376D39FDFDA52D76E9A7BF34C5FB83AD4B95858A7F5B8558C4D5335FA52CA52DF77D2A3510AF61CC57F26282F5589568BACACBC51E6A3D238ECD7E39223D642C3188B6D6E95F6A5643497C705A67A31B108CA7564C271DA2FBFCB79BB17AAB4AA199095FFBC401F0C9C331A7801C4A645AC2300E8452011B227B4CD5CB60CCC455427BB4CBF47DBCB755F7149466B7ED21E2D4F753F85937C257855FDCDD0DF35F754F24D2BB0FB1A48E930A15736C2FD0E35D050EFFEEF361AB03868FEA47C3FCFAC9536CF1876EA007FB6483979F4E508D6B16A118C1E722891F29912791AD36E19BF8F4A158A26DE6F8288F4D04BC2797C4F896AF44E6B9A7B4278AFA6EDE0261A8F4D35F5EF1686736DE200E093D6268E3A7E08805A50CC4B05FF6DC91F8CD41D53997DAF36F0D15A8A6EDBD74E4CE8B4675FB1193DEA03DE0040BE3D7697278B9E5F16E387AA9BD25620F244E92BE08A459FAEC9F5827DEE330733E46F66B00D4CFD0239D0903C323A2A3B9FF4B9FF0700E3E0555F751F4FBC5CEE395C79F443C08C1595D6C3F60564C7C3AF21947CD945EB4D861A88C053C814755C5B84F377BA0EDB0F3E326B66B6300977CB6AB53C2B91D35C37F59A6B140000008F500B9C3ABE4E06547C085EB02D425A1C1086930

Created by my app:

51:b:01000000d08c9ddf0115d1118c7a00c04fc297eb010000005b3176c7ecc63d47b688507f77bd58330000000002000000000003660000a8000000100000001a58771d28c5de17d7ade8582312aca70000000004800000a00000001000000003f27c9b56e420c035098972fc19369518000000a4144e9620e7753f6d63f3fbff6b0eb8f5f12b176e3515751400000096eb14ad79226fc004a081ed0f105730bce6edd8

Does anybody have any idea how I can overcome this issue? I would appreciate
any assistance offered.

Thanks
 
G

Guest

Thanks anyway but I have got it. In posting my question it was obvious that
the case of the 2 strings was different and correcting this my app now works
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top