added password encrypt to commons