Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    2

    Unhappy Access to password strength algorithm

    Does anybody know of a way to access the cpanel password strength algorithm? - or know what the algorithm is?

    I am building an interface to create email accounts using the api. My problem is that the minimum strength on the server is set to 50% - My hosting company will not lower this for security reasons. When I create an account using the api it fails if the strength is too low, so I would like to pre-check the strength before submission just like on the cpanel interface.

    It would be really good if there was an api call for this, then it could be done using an ajax call, but it doesn't seem to be available.

    Thanks.

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Friendly moderator note

    I moved this post to the Developer Discussions section, since it is appropriate as a development-related question.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default

    Hi mjqtreble,

    I think you're looking for:
    Code:
    https://$server:2083/backend/passwordstrength.cgi?password=At3stPas_w0rd
    you'll need to be authenticated, naturally. By sending the 'password' parameter, you'll get a JSON response like:
    Code:
     { "strength": 100 }
    Regards,
    -David
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    2

    Smile

    Thanks - works a treat!

    It would be good to add this call to the documentation.

Similar Threads & Tags
Similar threads

  1. Access to password strength algorithm
    By mjqtreble in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-23-2010, 09:28 AM
  2. password strength for email
    By nitaish in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-28-2009, 09:02 AM
  3. Password Strength
    By gmm6797 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-20-2009, 10:35 AM
  4. Need algorithm for password encryption
    By rnr in forum cPanel Developers
    Replies: 3
    Last Post: 11-13-2007, 03:52 AM
  5. Password Strength
    By cwihost in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-27-2007, 03:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube