Skip to content

Python development

Joachim Metz edited this page Jul 10, 2022 · 1 revision

libcaes comes with Python-bindings named pycaes.

Below are examples how use pycaes. They assume you have a working version of pycaes on your system. To build pycaes see Building.

Import

To be able to use pycaes in your Python scripts add the following import:

import pycaes

Get version

The get_version() module function can be used to retrieve the version of the pycaes.

pycaes.get_version()

This will return a textual string (Unicode) that contains the libcaes version. Since pycaes is a wrapper around libcaes it does not have a separate version.

Also see

import pycaes

help(pycaes)
help(pycaes.None)
Clone this wiki locally