| PageHelperEvaluateSanitizedSha1 Method |
This is preliminary documentation and is subject to change.
Evaluates SHA1 hash of the sanitized version of specified text content, in UTF-8 encoding.
Namespace: WikiClientLibrary.PagesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static string EvaluateSanitizedSha1(
string content
)
Public Shared Function EvaluateSanitizedSha1 (
content As String
) As String
Dim content As String
Dim returnValue As String
returnValue = PageHelper.EvaluateSanitizedSha1(content)
public:
static String^ EvaluateSanitizedSha1(
String^ content
)
static member EvaluateSanitizedSha1 :
content : string -> string
Parameters
- content String
- The text content to be hashed.
Return Value
StringThe lower-case hexadecimal hash string.
Remarks You may compare the returned hash directly to Sha1
to determine whether certain remote revision is much likely to have the same
content as specified by content.
Due to the limitation of offline normalization, the SHA1 evaluated locally
could still be different from the server-side value. See the "Remarks" section of
for more information.
See Also