mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
_block_tail is deprecated and removed
This commit is contained in:
parent
7bec54f2b0
commit
f7ebe41fd4
1 changed files with 1 additions and 7 deletions
8
jrnl.py
8
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue