I want to combine hashing and encryption for better security. So can I use a hash key generated from SHA-512 as a key in AES.
For example, I have a password "secret", I calculate SHA-512 hash for it and I want to feed those bytes as key for AES.
What things I need to care while implementing this?