PHP Classes

File: src/PublicKey.php

Recommend this page to a friend!
  Packages of Scott Arciszewski   Easy PHP RSA Library   src/PublicKey.php   Download  
File: src/PublicKey.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Easy PHP RSA Library
RSA data encryption and decryption using phpseclib
Author: By
Last change:
Date: 5 years ago
Size: 468 bytes
 

Contents

Class file image Download
<?php
namespace ParagonIE\EasyRSA;

class PublicKey
{
    protected $keyMaterial = '';

    /**
     * PrivateKey constructor.
     * @param $string
     */
    public function __construct($string)
    {
        $this->keyMaterial = $string;
    }

    /**
     * @return array
     */
    public function __debugInfo()
    {
        return [];
    }

    /**
     * @return string
     */
    public function getKey()
    {
        return $this->keyMaterial;
    }
}