Replaced MD5 magic with SHA-512 encryption, and simplified configuration