$hash = Hash::make('secret'); $input = 'secret'; if(Hash::check($input, $hash)){ // the input matches the secret }