Partager via


DpapiCryptographer.Encrypt Method

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Overload List

  Name Description
Public method Encrypt(array<Byte>)

Encrypt given data; this overload can be used ONLY when storage mode is "User", since when storage mode is "Machine" we MUST have optional entropy to "salt" the phrase. This will throw an Invalid Operation Exception if used in Machine mode.

Public method Encrypt(array<Byte>, array<Byte>)

Encrypt given data; this overload should be used when storage mode is "Machine", since when storage mode is "Machine" you must define entropy to "salt" the phrase.

See Also

DpapiCryptographer Class

DpapiCryptographer Members

Microsoft.Practices.EnterpriseLibrary.Security.Cryptography Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.