# Encrypt

class Encrypt

## Methods

`public static` | `` | `encrypt($password)` | No description |
`public static` | `` | `verify($password, $hash)` | No description |

## Details

at line 7

### `encrypt()`

`public static encrypt($password)`

#### Parameters

| `$password` |

at line 11

### `verify()`

`public static verify($password, $hash)`

#### Parameters

| `$password` |
| `$hash` |

## Source code

    <?php

    	namespace App\Khan\Component\Encrypt;

    	class Encrypt {

    		public static function encrypt($password) {
    		    return password_hash($password, PASSWORD_DEFAULT);
    		}

    		public static function verify($password, $hash){
    			return password_verify($password, $hash);
    		}

    	}