09-22-2013, 10:45 PM
maybe use a string instead of an integer. use standard names for the well-known algorithms (raw-md5, md5crypt, etc), and come up with a logical naming convention for the lesser-known algorithms (like maybe md5-salt-pass, md5-pass-salt, etc?)