Made encryption functions part of a file encrypter object, added some constant variables, and import for hmac