CryptoProvider Class
Provides digital rights management services for encrypting and decrypting protected content.
Assembly: WindowsBase (in WindowsBase.dll)
| Name | Description | |
|---|---|---|
![]() | BlockSize | Gets the cipher block size, in bytes. |
![]() | BoundGrants | Gets a collection listing the rights that passed verification and that are granted to the user. |
![]() | CanDecrypt | Gets a value that indicates whether the user has rights to decrypt. |
![]() | CanEncrypt | Gets a value that indicates whether the user has rights to encrypt. |
![]() | CanMergeBlocks |
| Name | Description | |
|---|---|---|
![]() | Decrypt(array<Byte>^) | Decrypts cipher text to clear text. |
![]() | Dispose() | Releases all resources used by the CryptoProvider. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the CryptoProvider and optionally releases the managed resources. |
![]() | Encrypt(array<Byte>^) | Encrypts clear text to cipher text. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Frees resources and performs internal cleanup before the instance is reclaimed by garbage collection.(Overrides Object::Finalize().) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
CryptoProvider is created as a result of the Bind method when binding a rights managed UseLicense to a SecureEnvironment.
As with other System.Security.RightsManagement types, CryptoProvider is only usable in full trust applications.
The following example shows how to use the CryptoProvider class to create an EncryptedPackageEnvelope.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


