| 1 | <?php |
||
| 5 | class Password extends AbstractRecord |
||
| 6 | { |
||
| 7 | const NAME = 'PASSWORD'; |
||
| 8 | const ID = 0x0013; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Generate the PASSWORD biff record |
||
| 12 | * |
||
| 13 | * @param $plaintextPassword |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public function getData($plaintextPassword) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Based on the algorithm provided by Daniel Rentz of OpenOffice. |
||
| 26 | * @param string $plaintext The password to be encoded in plaintext. |
||
| 27 | * @return string The encoded password |
||
| 28 | */ |
||
| 29 | protected function encode($plaintext) |
||
| 49 | } |
||
| 50 |