ParagonIE\Halite\Key::getRawKeyMaterial PHP Method

getRawKeyMaterial() public method

Get the actual key material
public getRawKeyMaterial ( ) : string
return string
    public function getRawKeyMaterial()
    {
        return Util::safeStrcpy($this->keyMaterial);
    }

Usage Example

Beispiel #1
0
 public function __construct($file, Key $key = null)
 {
     if (is_string($file)) {
         $this->fp = \fopen($file, 'rb');
         $this->closeAfter = true;
         $this->pos = 0;
         $this->stat = \fstat($this->fp);
     } elseif (is_resource($file)) {
         $this->fp = $file;
         $this->pos = \ftell($this->fp);
         $this->stat = \fstat($this->fp);
     } else {
         throw new \ParagonIE\Halite\Alerts\InvalidType('Argument 1: Expected a filename or resource');
     }
     $this->hashKey = !empty($key) ? $key->getRawKeyMaterial() : '';
     $this->hash = $this->getHash();
 }
All Usage Examples Of ParagonIE\Halite\Key::getRawKeyMaterial