ENCDEC for web written in Flask for Python