Cryptography MD5

public class MD5 extends Cryptography

class.md5.php #14

MD5 is a cryptography class for hashing and comparing messages using the MD5-Algorithm

Methods

public static
class.md5.php #54
static bool compare(string $input, string $hash, boolean $isHash)

Compares a given hash with a cleantext password.

Parameters
  • $input stringthe cleartext password

  • $hash stringthe hash the password should be checked against

Returns

the result of the comparison

See Also
public static
class.md5.php #38
static string file(string $input)

Uses MD5 to create a hash from the contents of a file

Parameters
  • $input stringthe file to be hashed

Returns

the hashed string

public static
class.md5.php #24
static string hash(string $input)

Uses MD5 to create a hash based on some input

Parameters
  • $input stringthe string to be hashed

Returns

the hashed string

See Also

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details