read in keys and file for encrypt