Difference between revisions of "HashAlgorithm class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>HashAlgorithm</nowiki> |Description=<nowiki>Hashing algorithms</nowiki> |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGs...")
 
 
Line 2: Line 2:
 
|Name=<nowiki>HashAlgorithm</nowiki>
 
|Name=<nowiki>HashAlgorithm</nowiki>
 
|Description=<nowiki>Hashing algorithms</nowiki>
 
|Description=<nowiki>Hashing algorithms</nowiki>
|Constructors=
+
|InheritsFrom=object|Constructors=
 
{{CGscriptConstructors_Template|Parameters=
 
{{CGscriptConstructors_Template|Parameters=
 
{{CGscriptParameters_Template|Type=string|Name=<nowiki>algorithm</nowiki>|Description=<nowiki>Algorithm to use. See supported algorithms at https://msdn.microsoft.com/en-us/library/system.security.cryptography.cryptoconfig(v=vs.110).aspx#Remarks</nowiki>}}
 
{{CGscriptParameters_Template|Type=string|Name=<nowiki>algorithm</nowiki>|Description=<nowiki>Algorithm to use. See supported algorithms at https://msdn.microsoft.com/en-us/library/system.security.cryptography.cryptoconfig(v=vs.110).aspx#Remarks</nowiki>}}
Line 16: Line 16:
 
{{CGscriptParameters_Template|Type=string|Name=<nowiki>content</nowiki>|Description=<nowiki>Content to calculate hash for</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=string|Name=<nowiki>encoding</nowiki>|Description=<nowiki>Encoding to use to convert content to bytes. Default utf-8</nowiki>}}
 
{{CGscriptParameters_Template|Type=string|Name=<nowiki>content</nowiki>|Description=<nowiki>Content to calculate hash for</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=string|Name=<nowiki>encoding</nowiki>|Description=<nowiki>Encoding to use to convert content to bytes. Default utf-8</nowiki>}}
 
|Description=<nowiki>Get number of groups for a given match</nowiki>}}
 
|Description=<nowiki>Get number of groups for a given match</nowiki>}}
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
+
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
 
|Properties=
 
|Properties=
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}

Latest revision as of 05:52, 2 July 2020

HashAlgorithm



Hashing algorithms

Parent class

Inherits from object

Constructors

  • (string algorithm "Algorithm to use. See supported algorithms at https://msdn.microsoft.com/en-us/library/system.security.cryptography.cryptoconfig(v=vs.110).aspx#Remarks") - New hashing algorithm without using a key.
  • (string algorithm "Algorithm to use. Supports TripleDES, MD5, RipeMD160, SHA1, SHA256, SHA384, SHA512", string key "Key to use", string encoding "Encoding to use to convert key to bytes. Default utf-8") - New hashing algorithm using a key.

Methods

  • array ComputeHashToArray(string content "Content to calculate hash for", string encoding "Encoding to use to convert content to bytes. Default utf-8") - Get number of groups for a given match
  • string ComputeHashToString(string content "Content to calculate hash for", string encoding "Encoding to use to convert content to bytes. Default utf-8") - Get number of groups for a given match
  • (From object) string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.