This function creates a random key

Namespace: DotNetNuke.Security
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public string CreateKey(
	int numBytes
)
Visual Basic
Public Function CreateKey ( 
	numBytes As Integer
) As String

Parameters

numBytes
Type: System..::..Int32
This is the number of bytes for the key

Return Value

A random string

Remarks

This is a public function used for generating SHA1 keys

See Also