Skip to main content
formatting
Source Link
wonea
  • 5k
  • 17
  • 91
  • 144

thThe SecureString is not serializablserializable so you cannot just save it with some of the delivered serializers (binary, xmlXML, etc.)

you also cannot just access e.g. a "Password" property from a securestring object as there is no such thing. you have to use MarshalligMarshalling and a little bit of plumbing to do this. if you want to store user credentials somewhere iI suggest encrypting them on your own as this eases later development. after evaluating the SecureString approach, we decided to implement something by ourselves, but these are just my 2 cents ;).

th SecureString is not serializabl so you cannot just save it with some of the delivered serializers (binary, xml, etc.)

you also cannot just access e.g. a "Password" property from a securestring object as there is no such thing. you have to use Marshallig and a little bit of plumbing to do this. if you want to store user credentials somewhere i suggest encrypting them on your own as this eases later development. after evaluating the SecureString approach, we decided to implement something by ourselves, but these are just my 2 cents ;)

The SecureString is not serializable so you cannot just save it with some of the delivered serializers (binary, XML, etc.)

you also cannot just access e.g. a "Password" property from a securestring object as there is no such thing. you have to use Marshalling and a little bit of plumbing to do this. if you want to store user credentials somewhere I suggest encrypting them on your own as this eases later development. after evaluating the SecureString approach, we decided to implement something by ourselves, but these are just my 2 cents.

Source Link

th SecureString is not serializabl so you cannot just save it with some of the delivered serializers (binary, xml, etc.)

you also cannot just access e.g. a "Password" property from a securestring object as there is no such thing. you have to use Marshallig and a little bit of plumbing to do this. if you want to store user credentials somewhere i suggest encrypting them on your own as this eases later development. after evaluating the SecureString approach, we decided to implement something by ourselves, but these are just my 2 cents ;)