简体   繁体   English

filter_var用于密码

[英]filter_var for password

Good evening. 晚上好。

I recently bump into the filter_var() of PHP. 我最近遇到了PHP的filter_var()。 I am wondering if what type of sanitize filter and filter flag should I use with filter_var() for sanitizing my password variable? 我想知道我应该使用什么类型的清理过滤器和过滤器标志filter_var()来清理我的密码变量? Or is there a better way to sanitize it? 或者有更好的消毒方法吗?

无需清理密码,因为无论如何都需要对其进行哈希处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM