login
April 25, 2024, 02:05:03 am

Author Topic: [Module] mod_password  (Read 1898 times)

0 Members and 1 Guest are viewing this topic.

stormeus

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 1755
  • Country: us
  • VC:MP Developer
    • View Profile
    • GTA VICE CITY Respective owner
[Module] mod_password
« 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 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 (Linux, Source, and Windows in one ZIP)

Quote
Archive
Revision 1
Combined Package (Linux, Source, and Windows in one ZIP)
« Last Edit: November 19, 2011, 03:17:15 am by stormeus »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

<krystianoo> stormeus do good job
<krystianoo> with recent update
<krystianoo> if not agree; jeb yourself in head
<Avenger> yesterday you said death to stormeus
<karan> double standard krystianoo
<karan> he called him fake prophet too
<krystianoo> sure fake prophet
<krystianoo> but with recent updates real

Charley

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 4751
  • Country: 00
    • View Profile
Re: [Module] mod_password
« Reply #1 on: November 17, 2011, 07:47:42 pm »
Looks cool, though implementation would be kinda useless in VC:MP given the literacy rate.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Writer of excessively long posts


stormeus

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 1755
  • Country: us
  • VC:MP Developer
    • View Profile
    • GTA VICE CITY Respective owner
Re: [Module] mod_password
« Reply #2 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

<krystianoo> stormeus do good job
<krystianoo> with recent update
<krystianoo> if not agree; jeb yourself in head
<Avenger> yesterday you said death to stormeus
<karan> double standard krystianoo
<karan> he called him fake prophet too
<krystianoo> sure fake prophet
<krystianoo> but with recent updates real

Skirmant

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 681
  • Country: il
  • Ignorance is bliss.
    • View Profile
Re: [Module] mod_password
« Reply #3 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. :-\
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

"C++ is a horrible language" - Linus Torvalds, creator of Linux

Quote
<SLC> nope. changed my mind. squirrel still sux dix
<SLC> it's just a piece of sh!t
* SLC has quit (Connection closed)

morphine

  • Crazy Man
  • *****
  • Posts: 1909
  • Country: lt
    • View Profile
Re: [Module] mod_password
« Reply #4 on: November 19, 2011, 11:08:42 am »
LoadModule("xyz");

???
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Skirmant

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 681
  • Country: il
  • Ignorance is bliss.
    • View Profile
Re: [Module] mod_password
« Reply #5 on: November 19, 2011, 11:30:53 am »
LoadModule("xyz");

???



HOW COEM THIS WASN'T IN THE SQURREL MANUAL
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

"C++ is a horrible language" - Linus Torvalds, creator of Linux

Quote
<SLC> nope. changed my mind. squirrel still sux dix
<SLC> it's just a piece of sh!t
* SLC has quit (Connection closed)