Skip to content

Commit

Permalink
Define globals if crypto missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Apr 22, 2016
1 parent 96d4bd2 commit e998448
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buku
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ try:
import struct

no_crypto = False
encrypt = False # Lock database file
decrypt = False # Unlock database file
iterations = 8 # Number of hash iterations to generate key
BLOCKSIZE = 65536
SALT_SIZE = 32
CHUNKSIZE = 0x80000 # Read/write 512 KB chunks
Expand All @@ -69,6 +66,9 @@ debug = False # Enable debug logs
titleData = None # Title fetched from a page
titleManual = None # Manually add a title offline
replace = False # Replace a tag
encrypt = False # Lock database file
decrypt = False # Unlock database file
iterations = 8 # Number of hash iterations to generate key
jsonOutput = False # Output json formatted result
pipeargs = [] # Holds arguments piped to the program
_VERSION_ = 1.9 # Program version
Expand Down

0 comments on commit e998448

Please sign in to comment.