Python md5() function
Python md5() function
The md5() function in PHP calculates the md5 hash of a string.
Syntax
md5 ( string $str [, bool $raw_output] )
Parameter
str(required)- This parameter specifies the string.
raw_output(optional)- This parameter specifies a hex or binary output format:
- TRUE - Raw 16 character binary format
- FALSE - Default. 32 character hex number
Return
This function returns the hash as a 32-character hexadecimal number.
Example 1
Output
The string: Hello After the md5() method... Hashed string: 8b1a9953c4611296a827abf8c47804d7
Example 2
Output
Your string is: TutorialandExample Passing boolean value true: ?=?l?M??"V#????? Passing boolean value false: ec3dea6c944d8c8f22562383decde1d5
Example 3
Output
Hashed number: c540ce201d398a7d275c6e0c669097f3 This is an md5() function example!