IKeyCreator.GenerateKey Method

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.

The latest Enterprise Library information can be found at the Enterprise Library site.

When implemented by a class, generates a random key.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.Design
Assembly:  Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.Design (in Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.Design.dll)

Syntax

'Declaration
Function GenerateKey As Byte()
byte[] GenerateKey()
array<unsigned char>^ GenerateKey()
function GenerateKey() : byte[]

Return Value

A random key.

See Also

IKeyCreator Interface

Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.Design Namespace