From a42f767db605bbccf9e2e635bba171ec11dc5d9c Mon Sep 17 00:00:00 2001 From: Suzaku Date: Mon, 31 May 2021 22:00:11 +0800 Subject: [PATCH] Update Description --- README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cc61dd..b791a03 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ -# csrf-token -Generate random token for CSRF +# CSRF-token +This CSRF-TOKEN is written in PHP and very simple to use. It generate random token in every refresh of the browser page. + +## Generate token +``` + + + + + +?> +``` ++ Place this static function on a hidden input field value. + +## Check Token +``` + +``` ++ You can check if the token is valid using Token::generate();