hash => bcrypt , argon2

Estimated reading time: 1 minute

hash => bcrypt , argon2

  • Hash::make(password)
  • Hash::check('plain-text', $hashedPassword)

encryption

  • encrypt($secret)
  • decrypt($encryptedValue)

~ encrypt github laravel framework

  • use Illuminate\Encryption\Encrypter

  • step 2

use Illuminate\Support\Facades\Crypt;

$encrypted = Crypt::encryptString('Hello world.');

$decrypted = Crypt::decryptString($encrypted);