<?php
/**
 * Provides methods for password encryption using crypt().
 *
 * @package    phpMyFAQ 
 * @subpackage PMF_Enc
 * @author     Lars Tiedemann <php@larstiedemann.de>
 * @since      2005-09-18
 * @copyright  2005-2009 phpMyFAQ Team
 * @version    SVN: $Id: EncCrypt.php 4414 2009-05-20 11:51:56Z anatoliy $ 
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 */

/**
 * PMF_Enc_EncCrypt
 *
 * @package    phpMyFAQ 
 * @subpackage PMF_Enc
 * @author     Lars Tiedemann <php@larstiedemann.de>
 * @since      2005-09-18
 * @copyright  2005-2009 phpMyFAQ Team
 * @version    SVN: $Id: EncCrypt.php 4414 2009-05-20 11:51:56Z anatoliy $ 
 */
class PMF_Enc_EncCrypt extends PMF_Enc
{
    /**
     * Name of the encryption method.
     *
     * @var string
     */
    public $enc_method = 'crypt';

    /**
     * encrypts the string str and returns the result.
     *
     * @param  string $str String
     * @return string
     */
    public function encrypt($str)
    {
        return crypt($str);
    }
}