src/Encryptor.php
public function turnHexKeyToBin()
    {
        if (!ctype_xdigit($this->secret)) {
            throw new InvalidSecretKeyException(sprintf('The secret key "%s" is not a hex key', $this->secret));
        }

        $this->secret = hex2bin($this->secret);
    }
public function turnHexKeyToBin()
    {
        if (!ctype_xdigit($this->secret)) {
            throw new InvalidSecretKeyException(sprintf('The secret key "%s" is not a hex key', $this->secret));
        }

        $this->secret = hex2bin($this->secret);
    }
public function turnHexKeyToBin ( ) { if ( ! ctype_xdigit ( $ this -> secret ) ) { throw new InvalidSecretKeyException ( sprintf ( 'The secret key "%s" is not a hex key' , $ this -> secret ) ) ; } $ this -> secret = hex2bin ( $ this -> secret ) ; }
Turns the secret hex key into a binary key.

@throws InvalidSecretKeyException When the secret key is not a hex key.
Turns the secret hex key into a binary key .