HashAlgorithm class

From Catglobe Wiki
Revision as of 07:05, 2 October 2017 by Nguyenduyan (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>HashAlgorithm</nowiki> |Description=<nowiki>Hashing algorithms</nowiki> |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGs...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

HashAlgorithm



Hashing algorithms

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
  • string ToString() - The string representation of the object.

Properties

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