LumiSoft Net Help
ComputeMd5 Method (text, hex)
Namespaces ► LumiSoft.Net ► Net_Utils ► ComputeMd5(String, Boolean)
Computes md5 hash.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public static string ComputeMd5(
    	string text,
    	bool hex
    )

    Public Shared Function ComputeMd5 (
    	text As String,
    	hex As Boolean
    ) As String

    public:
    static String^ ComputeMd5(
    	String^ text,
    	bool hex
    )

    static member ComputeMd5 :
            text : string *
            hex : bool -> string

Parameters

text (String)
  Text to hash.

hex (Boolean)
  Specifies if md5 value is returned as hex string.

Return Value
String
Returns md5 value or md5 hex value.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when text is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119