 <p>Technically they are both different versions of bcrypt or crypt-blowfish</p> <p>in php the prefix is $2y$10$ in python the prefix is $2b$11$</p> <p>This means the cost factors are slightly different 10 vs 11 respectively in your update you have fixed the cost factors to both be 11</p> <p>The other part of the prefix indicates php is using the CRYPT_BLOWFISH hashing where python is using bcrypt which is based on the Blowfish cipher.</p> <p>Because of those differences the 2 passwords are not interchangeable.</p>