Implemented Crypto methods encrypt and decrypt completely.
History file written to disk has following structure:
xxxx yyyyyyyyyyyyyyyy zzzz eeeeeeee...eeeeeeee hhhhhhhhhhhhhhhh
Len        IV         Len    Encrypted data        HMAC of 
 of                    of                       encrypted data
 IV                 encrypted 
                      data