GeneralFunctions.EncryptStringToBytes Method

Encrypts the given text using symmetric Rijndael algorithm.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim plainText As String
Dim Key As Byte()
Dim IV As Byte()
Dim returnValue As Byte()

returnValue = GeneralFunctions.EncryptStringToBytes(plainText, Key, IV)

Syntax

'Declaration
<ObsoleteAttribute("This method has been deprecated.", True)> _
Public Shared Function EncryptStringToBytes ( _
    plainText As String, _
    Key As Byte(), _
    IV As Byte() _
) As Byte()
[ObsoleteAttribute("This method has been deprecated.", true)] 
public static byte[] EncryptStringToBytes (
    string plainText,
    byte[] Key,
    byte[] IV
)
[ObsoleteAttribute(L"This method has been deprecated.", true)] 
public:
static array<unsigned char>^ EncryptStringToBytes (
    String^ plainText, 
    array<unsigned char>^ Key, 
    array<unsigned char>^ IV
)
/** @attribute ObsoleteAttribute("This method has been deprecated.", true) */ 
public static byte[] EncryptStringToBytes (
    String plainText, 
    byte[] Key, 
    byte[] IV
)
ObsoleteAttribute("This method has been deprecated.", true) 
public static function EncryptStringToBytes (
    plainText : String, 
    Key : byte[], 
    IV : byte[]
) : byte[]

Parameters

  • plainText
    Specifies the string to be encrypted
  • Key
    Specifies the value of the key to be used for encryption
  • IV
    Specifies the initialization vector to be used for encryption

Return Value

Byte array represented encrypted text.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

GeneralFunctions Class
GeneralFunctions Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.