PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/library/MaltBlue/Filter/Md5.php

https://github.com/settermjd/Zend-Framework-Development-Project
PHP | 42 lines | 8 code | 2 blank | 32 comment | 0 complexity | 76dddb9dcefa151d1e3e5b0f2792a25f MD5 | raw file
  1. <?php
  2. /**
  3. * Malt Blue
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category MaltBlue
  16. * @package MaltBlue_Filter
  17. * @copyright Copyright (c) 2005-2011 Malt Blue. (http://www.maltblue.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. */
  20. /**
  21. * @category MaltBlue
  22. * @package MaltBlue_Filter
  23. * @copyright Copyright (c) 2005-2011 Malt Blue. (http://www.maltblue.com)
  24. * @license http://framework.zend.com/license/new-bsd New BSD License
  25. */
  26. class MaltBlue_Filter_Md5 implements Zend_Filter_Interface
  27. {
  28. /**
  29. * Defined by Zend_Filter_Interface
  30. *
  31. * Returns an md5 hash of the value passed in
  32. *
  33. * @param string $value
  34. * @return string
  35. */
  36. public function filter($value)
  37. {
  38. return md5($value);
  39. }
  40. }