PHP Classes

File: src/Keys/Version2/SymmetricKey.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   PHP PASeTo   src/Keys/Version2/SymmetricKey.php   Download  
File: src/Keys/Version2/SymmetricKey.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP PASeTo
Encrypt and decrypt data with PaSeTO protocol
Author: By
Last change:
Date: 4 years ago
Size: 658 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Paseto\Keys\Version2;

use
ParagonIE\Paseto\Keys\SymmetricKey as BaseSymmetricKey;
use
ParagonIE\Paseto\Protocol\Version2;
use
ParagonIE\Paseto\ProtocolInterface;

/**
 * Class SymmetricKey
 * @package ParagonIE\Paseto\Keys\Version2
 */
class SymmetricKey extends BaseSymmetricKey
{
   
/**
     * SymmetricKey constructor.
     *
     * @param string $keyMaterial
     * @param ProtocolInterface|null $protocol
     */
   
public function __construct(
       
string $keyMaterial,
       
ProtocolInterface $protocol = null
   
) {
        return
parent::__construct($keyMaterial, new Version2());
    }
}