Skip to content

Instantly share code, notes, and snippets.

@minorsecond
Created May 21, 2015 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minorsecond/93706951d2dbdecf0c44 to your computer and use it in GitHub Desktop.
Save minorsecond/93706951d2dbdecf0c44 to your computer and use it in GitHub Desktop.
Seg fault 'EVP_CIPHER_key_length () from /lib64/libcrypto.so.1.0.0' When running queries sel or job_sel.
if encryption is True:
print("***PYPER TIMESHEET UTILITY***")
print("\nEnter encryption password below:")
key = str(getpass.getpass())
DB_NAME = ".timesheet.db"
engine = create_engine(
'sqlite+pysqlcipher://:{0}@/{1}?'
'cipher=aes-256-cfb&kdf_iter=64000'.format(key, DB_NAME))
DBSession = sessionmaker(bind=engine)
session = DBSession()
sel = session.query(Timesheet).order_by(Timesheet.id.desc()).all()
job_sel = session.query(Job).order_by(Job.id.desc()).all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment