Wiccle.com in Facebook Wiccle.com in Twitter Wiccle.com in LinkedIn Wiccle.com in Youtube RSS from Wiccle.com Wiccle.com in Atom
 
 
 

Thread: login share integration

Started: September 1, 2011, 05:11 AM  ⋅  Zone: Public Forums  ⋅  Category: General Chat  ⋅  Posts: 3  ⋅  Views 4367
Started by: DosDawg  ⋅  Description: integration of 3rd party apps with database share. support ticket system
Post #1
Member: DosDawg  ⋅  Date: September 1, 2011, 05:11 AM  ⋅ Subject: "login share integration"

i am trying to have a 3rd party app do a login database share. the developers were sent the sql which creates the members profile. they have the following inquiry:

 

i can see that wiccle uses member_password 
and member_hash fields for password encryption.
Can you provide how this two fields get encrypted, i am not able to find it at wiccle.com forum
eg if password is admin -- it stores two values in member_password 
and member_hash in encrypted format. Let us know the encryption method which we can use in login integration.

Post #2
Member: Markus  ⋅  Date: September 6, 2011, 02:40 AM  ⋅ Subject: "Re: login share integration"

Below is how it seems to be in the version that I have here. I wonder what the heck the md5 is doing there inside the sha1, it just narrows the potentially available hash-pool by eight characters (as 32 vs. 40 chr.). I believe we first used md5 and then upgraded to sha1, and that's one of those countless loose ends I never had time to return to, for other Wiccle priorities that kept emerging until Dec'10 for me.

/core/class_global.php

static function hash_password($pwd, $hash)
{
    return sha1(md5($pwd, $hash));
}

/core/ajax/members.php

$hash = Elements::make_hash();
$pass = Utility::hash_password($_POST['member_password'], $hash);

/core/class_elements.php

static function make_hash($seed="")
{
    /*  Stored under posts.post_hash for ajax reference */
   
    /* Any random string into md5/sha1 mash */
    $hash = sha1($seed.date("r").mt_rand());
    return $hash;

}

See those files and surrounding code for more. "Remember" cookies are also handled somewhere around there.

If people are lost in the jungles here, I am available for consultation at my regular hourly rate at 80€/h. Regret that I have had to rise it due to now chronic back problems, treatments thereof etc. that come with the code and need to be paid for. I do not work for Wiccle Ltd, nor do I currently have time (neither interest) to invest myself into providing free support; plenty of that done already.

It's a familiar field all the same, and there are dozens of fairly obvious questions here that seem to be going unanswered for months on end... so codesatori@gmail.com is the address for those who need their pending solutions enough to want to pay up a fair price for premium code/advice and working resolutions to all these software troubles.

Post #3
Member: Eric  ⋅  Date: September 8, 2011, 12:02 PM  ⋅ Subject: "Re: login share integration"

Hi DosDawg ,

 

I've flagged your issue with the coders and they shall get back to you.

 

Regards,

 

Eric

Wiccle

 

General Chat

Add to Favorites
Public Forums
Category  ⋅  On and off topic, almost anything goes, but let's keep it civil and reasonable.
 

Public Forums

Add to Favorites
Public Forums
Zone  ⋅ Public forum sections for support and discussions. Available for everyone.
 

Zone Categories

 
Questions? Ask us!
Back to Top