Generates URL-friendly MD5 hash with the specified length. Note: if parameter length is equal to zero, the original hash will be returned. Specifying any other length increases the risks of colisions and should be used only in specific situations.

Namespace: MonoSoftware.Core.Cryptography
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static string GenerateUrlFriendlyMd5Hash(
	string value,
	string salt,
	int length
)
Visual Basic
Public Shared Function GenerateUrlFriendlyMd5Hash ( 
	value As String,
	salt As String,
	length As Integer
) As String
Visual C++
public:
static String^ GenerateUrlFriendlyMd5Hash(
	String^ value, 
	String^ salt, 
	int length
)
F#
static member GenerateUrlFriendlyMd5Hash : 
        value : string * 
        salt : string * 
        length : int -> string 

Parameters

value
Type: System..::..String
Value to hash.
salt
Type: System..::..String
Salt.
length
Type: System..::..Int32
Length of the hashed value.

Return Value

Type: String
Hashed string.

See Also