public static function loadEncryptionKey(string $filePath): EncryptionKey
    {
        if (!\is_readable($filePath)) {
            throw new CannotPerformOperation(
                'Cannot read keyfile: '. $filePath
            );
        }
        return new EncryptionKey(
            self::loadKeyFile($filePath)
        );
    }
public static function loadEncryptionKey(string $filePath): EncryptionKey
    {
        if (!\is_readable($filePath)) {
            throw new CannotPerformOperation(
                'Cannot read keyfile: '. $filePath
            );
        }
        return new EncryptionKey(
            self::loadKeyFile($filePath)
        );
    }
public static function loadEncryptionKey ( string $ filePath ) : EncryptionKey { if ( ! \ is_readable ( $ filePath ) ) { throw new CannotPerformOperation ( 'Cannot read keyfile: ' . $ filePath ) ; } return new EncryptionKey ( self :: loadKeyFile ( $ filePath ) ) ; }
Load a symmetric encryption key from a file

@param string $filePath
@return EncryptionKey

@throws CannotPerformOperation
@throws InvalidKey
@throws \TypeError
@codeCoverageIgnore
Load a symmetric encryption key from a file