I\'ve been hunting around the net now for a few days trying to figure this out but getting conflicting answers.
Is there a library, class or function for PHP
Lots of security engineers are recommending to use this library for this specific problem :
https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API