Partager via


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

Generates a random key.

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

Syntax

'Declaration
PublicFunctionGenerateKeyAs Byte()
public byte[] GenerateKey()
public:
virtualarray<unsigned char>^ GenerateKey() sealed
publicfinalfunctionGenerateKey() : byte[]

Return Value

A random key.

Implements

IKeyCreator.GenerateKey()

See Also

SymmetricAlgorithmKeyCreator Class

EnterpriseLibrary.Security.Cryptography.Configuration.Design Namespace

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.