Share via


Key.Encrypt Method

Encrypts data in a specified byte array, starting at a specified offset and encrypting a specified amount of data.

Namespace: Microsoft.SPOT.Cryptography
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

 public virtual abstract byte [] Encrypt (
         byte[] data,
         int offset,
         int count,
         byte[] IV
)

Parameters

  • data
    The byte array that contains the data to be encrypted.
  • offset
    An offset into the specified byte array, locating the start of the data to be encrypted.
  • count
    The number of bytes of data to be encrypted, starting from the specified offset.
  • IV
    The initialization vector. You use this parameter to encrypt the first block of data in a cipher block chain.

Return Value

The specified byte array containing encrypted data.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Key Class
Key Members
Microsoft.SPOT.Cryptography Namespace