Cryptography SHA1

public class SHA1 extends Cryptography

class.sha1.php #14

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

Methods

public static
class.sha1.php #53
static boolean 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.sha1.php #37
static string file(string $input)

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

Parameters
  • $input stringthe file to be hashed

Returns

the hashed string

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

Uses SHA1 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