<?php
/**
 * This file is part of the Imbo package
 *
 * (c) Christer Edvartsen <cogo@starzinger.net>
 *
 * For the full copyright and license information, please view the LICENSE file that was
 * distributed with this source code.
 */

namespace Imbo\EventListener\AccessToken;

/**
 * Implementation of the default SHA256 access token generator
 *
 * @author Mats Lindh <mats@lindh.no>
 * @package AccessToken
 */
class SHA256 extends AccessTokenGenerator {
    public function generateSignature($data, $privateKey) {
        return hash_hmac('sha256', $data, $privateKey);
    }
}
Implement default access token algorithm as an access token generator
Implement default access token algorithm as an access token generator
