diff --git a/jrnl.py b/jrnl.py index 892d3326..163fa05d 100755 --- a/jrnl.py +++ b/jrnl.py @@ -13,7 +13,7 @@ try: import simplejson as json except ImportError: import json import sys import readline, glob -from Crypto.Cipher import AES +from ` import AES from Crypto.Random import random, atfork import hashlib import getpass @@ -82,12 +82,6 @@ class Journal: self.entries = self.parse(journal_txt) self.sort() - def _block_tail(self, s, b=16, force=False): - """Appends spaces to a string until length is a multiple of b""" - if force and len(s) % 16 == 0: - return s + " "*16 - return s + " "*(b - len(s) % b) - def _decrypt(self, cipher): """Decrypts a cipher string using self.key as the key and the first 16 byte of the cipher as the IV""" if not cipher: