Trabla: Python & php: python equivalent ( analog ) of php md5 function
Solving:
1. PHP code:
<?php
$password = "trololo";
echo md5($password);
?>
Result: 37f62f1363b04df4370753037853fe88
2. Pyhon code:
import hashlib
password = b"trololo"
md5 = hashlib.md5()
md5.update( password )
print( md5.hexdigest())
Result: 37f62f1363b04df4370753037853fe88
No comments:
Post a Comment