Calculate #PHP equivalent #MD5 Hash in MS #SQL Server

The MD5 hash is a pretty standard and secure hashing algorithm, that is often used to create one-way encryption of sensitive data. Quite often the hash code is generated from the application layer, such as PHP, and needs to be verified at the database layer.

So, let’s say you want to hash the word “password” in SQL server – you just write