HashAlgorithm class

From Catglobe Wiki
Revision as of 05:52, 2 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.