Generate SHA-224 Hash

SHA-224 is a cryptographic hash function that accepts a string of any length and returns a 224-bit fixed-length digest value, commonly represented as a sequence of 56 hexadecimal digits. SHA-224…

Get Extension of File Path

A file extension is a suffix at the end of a filename which specifies the file type. For example, .gz is the extension of the filename archived.tar.gz. Programming languages provides…

Generate Argon2id Password Hash

Argon2 is a cryptographic hash function that commonly used for password hashing. Argon2d, Argon2i and Argon2id are variants of Argon2. Argon2id is a combination of Argon2i and Argon2d which has…
Using match Expression in PHP 8.0

Using match Expression in PHP 8.0

PHP has switch statement that can be used to execute different blocks of code based on different cases. Since PHP 8.0, we can use match expression that is similar to…