adding check to the key length

In reference to #6722, I humbly submit my first PR.
Also, I'm not sure if we should include the mention of the command since the encrypter class itself should have no knowledge of commands or config, and can be used outside of laravel, so would make so sense.