Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel: Implementing a CRYPT_SHA512 Hasher

This article explains how to create an implementation of Illuminate\Contracts\Hashing\Hasher using PHP's crypt function and the CRYPT_SHA512 hashing function. The article provides the step-by-step process for implementing each method of the contract. Additionally, it introduces the Sha512Hasher class, which extends the Sha256Hasher class and makes a simple change to match the SHA-512 hashing function.