| 1 | <?php |
||
| 10 | class HashCheckCommand extends Command |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The console command signature. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'hash:check |
||
| 18 | {string1 : Plain or Hashed string one.} |
||
| 19 | {string2 : Plain or Hashed string two.} |
||
| 20 | {--cost=10 : Cost of generate.} |
||
| 21 | '; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The console command description. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $description = '[+] Check hashed value'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Execute the console command. |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | 4 | public function handle() |
|
| 58 | |||
| 59 | 4 | protected function isHashed($string) |
|
| 63 | } |
||
| 64 |