Security updates

- Updated setDir in view
- Updated auth to use sha1 and "auto salted" encryption