Jump to content

Cum aflu parolele membrilor in IPB?


strong

Recommended Posts

  • 2 weeks later...
  • Moderators
20 minutes ago, GodsOtherHand said:

https://en.wikipedia.org/wiki/MD5

 

https://en.wikipedia.org/wiki/Hash_function

 

Motive pentru care nu poti "decripta".. md5 nu cripteaza. Mai mult decat linkurile alea jur ca nam ce sa iti dau.. daca nu vrei sa intelegi, nu vrei sa intelegi.

This.

Ar fi jale daca ar merge invers treaba.

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Link to comment
Share on other sites

  • Moderators
7 hours ago, GodsOtherHand said:

+ daca inca se foloseste md5 pentru salvarea parolelor.. jale

Depinde, sometimes da, sometines nu. Asta e metoda noua la IPB 4:

	/**
	 * Encrypt a plaintext password
	 *
	 * @param	string	$password	Password to encrypt
	 * @return	string	Encrypted password
	 * @todo	[Future] When we increase minimum PHP version, adjust blowfish to $2y$
	 */
	public function encryptedPassword( $password )
	{
		/* New password style introduced in IPS4 using Blowfish */
		if ( mb_strlen( $this->members_pass_salt ) === 22 )
		{
			return crypt( $password, '$2a$13$' . $this->members_pass_salt );
		}
		/* Old encryption style using md5 */
		else
		{
			return md5( md5( $this->members_pass_salt ) . md5( \IPS\Request::legacyEscape( $password ) ) );
		}
	}

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Link to comment
Share on other sites

wtf, astia chiar folosesc 'encrypted' pentru denumirea functiei :)) hahaha.

Din cate vad asa rapid, md5 e folosit pentru legacy aici. In mod normal ar folosi Blowfish, nu md5. Daca inca ai parola cu md5, la primu login ar trebui(in alta functie undeva) sa tio modifice sa se salveze cu blowfish.

love is a verb
Love is a doing word

Link to comment
Share on other sites

  • gaby changed the title to Cum aflu parolele membrilor in IPB?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.