@@ -49,14 +49,14 @@ |
||
| 49 | 49 | private function createPasswdContents(iterable $users): iterable |
| 50 | 50 | { |
| 51 | 51 | foreach ($users as $user => $password) { |
| 52 | - yield $user . ':x:' . crc32($user) . ':0:99999:7:::'; |
|
| 52 | + yield $user.':x:'.crc32($user).':0:99999:7:::'; |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | private function createShadowContents(iterable $users): iterable |
| 57 | 57 | { |
| 58 | 58 | foreach ($users as $user => $password) { |
| 59 | - yield $user . ':$1$$' . base64_encode(md5($password)) . ':' . crc32($user) . ':0:99999:7:::'; |
|
| 59 | + yield $user.':$1$$'.base64_encode(md5($password)).':'.crc32($user).':0:99999:7:::'; |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |