Ensure that the length of the key returned is guaranteed

```php
function getKeyHash($seed, $length=32) { // 256-bit if unspecified
    $hash = Crypto::hash($this->getMasterKey().md5($this->getSubKey()), $seed);
    return substr($hash, 0, $length);
}
```