added password timeout to file crypt & updated tests