Vice Underdogs

Scripting => Script Showroom => Topic started by: stormeus on November 17, 2011, 12:35:23 am

Title: [Module] mod_password
Post by: stormeus on November 17, 2011, 12:35:23 am
Ctrl + V from LU and VC:MP Squirrel forums.

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

Quote
Archive
Revision 1
Combined Package (http://www.mediafire.com/?jy3ntk5noq9i8o6) (Linux, Source, and Windows in one ZIP)
Title: Re: [Module] mod_password
Post by: Charley on November 17, 2011, 07:47:42 pm
Looks cool, though implementation would be kinda useless in VC:MP given the literacy rate.
Title: Re: [Module] mod_password
Post by: stormeus on November 17, 2011, 08:38:51 pm
I made it for the Argo LU server, figured I'd release it for VC:MP anyways since modules are interchangeable.
Title: Re: [Module] mod_password
Post by: Skirmant on November 19, 2011, 09:01:16 am
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. :-\
Title: Re: [Module] mod_password
Post by: morphine on November 19, 2011, 11:08:42 am
LoadModule("xyz");

???
Title: Re: [Module] mod_password
Post by: Skirmant on November 19, 2011, 11:30:53 am
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