Vice Underdogs
Scripting => Script Showroom => Topic started by: stormeus on November 17, 2011, 12:35:23 am
-
Ctrl + V from LU and VC:MP Squirrel forums.
Password Strength Check Module ( mod_password )
A quick module I wrote from the Global Watchlist (http://forum.liberty-unleashed.co.uk/index.php?topic=913.0) source code, this module connects to Google's password rating API to rate a password's strength. It's very simple, and consists of only one function.
int GetPasswordStrength( string password, [bool ignoreLength [, string userName]] )
password - The password, as a string
ignoreLength - If true, password length is not checked. (Optional and false by default.)
userName - The username, which can be used for additional security checks. (Optional)
The function returns an integer from 0-4, or null if an error occurs. The ratings are as follows:
- 0 - Too short.
- 1 - Insecure.
- 2 - Okay.
- 3 - Good.
- 4 - Excellent.
Download (revision 2)
Combined Package (http://www.mediafire.com/?e3ltvzunyaljgnu) (Linux, Source, and Windows in one ZIP)
Archive
Revision 1
Combined Package (http://www.mediafire.com/?jy3ntk5noq9i8o6) (Linux, Source, and Windows in one ZIP)
-
Looks cool, though implementation would be kinda useless in VC:MP given the literacy rate.
-
I made it for the Argo LU server, figured I'd release it for VC:MP anyways since modules are interchangeable.
-
How exactly can you load modules, libraries or what ever you call 'em in a squirrel script? I tried searching far and wide but never found anything. :-\
-
LoadModule("xyz");
???
-
LoadModule("xyz");
???
(https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fstickerish.com%2Fwp-content%2Fuploads%2F2011%2F03%2FRageFaceBlackSS.png&hash=c33aa87a1fddfbe99acb2ae2d980512fefb45c93)
HOW COEM THIS WASN'T IN THE SQURREL MANUAL