Partager via


KeyedHashAlgorithmKeyCreator.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.

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
Public Function GenerateKey As Byte()
public byte[] GenerateKey()
public:
virtual array<unsigned char>^ GenerateKey() sealed
public final function GenerateKey() : byte[]

Return Value

A random key.

Implements

IKeyCreator.GenerateKey()

See Also

KeyedHashAlgorithmKeyCreator Class

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