Moved password classes to core.