Object Oriented library for Wordpress wp_nonce_*() methods

dev-master 2018-06-27 19:44 UTC

This package is not auto-updated.

Last update: 2024-04-18 02:11:19 UTC


README

Orignal library can be found at: https://codex.wordpress.org/WordPress_Nonces

set configuration with the below methods

            $config = new \Nonces\NonceGenerator();
			$config->getLife(),
			$config->getAlgorithm(),
			$config->setSalt(),
			$config->getSession(),
			$config->getUserId(),
			

Create Nonce

Will need salt and algortithm set before calling the below method

$nonce = new Nonce();
$nonce->generateNonce();

Verify Nonce

$verifier = new Nonce($input,$nonce);
$verifier->compare($nonce, $action);