PHP Classes

File: req/functions.php

Recommend this page to a friend!
  Classes of Ákos Nikházy   PHP Have I Been Pwned API Search   req/functions.php   Download  
File: req/functions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Have I Been Pwned API Search
Check if email addresses are in the HIBP database
Author: By
Last change: Update of req/functions.php
Date: 1 year ago
Size: 416 bytes
 

Contents

Class file image Download
<?php
/*
    function.php - collection of functions duh
   
    This software created by Ákos Nikházy
   

*/
function saltPasswordHash($pw,$salt)
{

    return
hash('sha256', $salt.$pw);
   
}

function
startSession($id)
{
   
session_id($id);
   
session_start();
}

function
vd($var,$die = false)
{
//Var_Dump on steroids.
   
echo '<pre>';
   
var_dump($var);
    echo
'</pre>';
   
    if(
$die) die(); // :)
}

?>