Skip to content

contialessandro/WordpressNonceOop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Object Oriented library for wp_nonce;

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);

About

Wordpress Object Oriented library for wp_nonce

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages