Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for rendering of code blocks in CLE documentation #1159

Merged
merged 1 commit into from
May 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/column_encryption.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and adding information about columns to be encrypted to it. This policy is then
when it's created.

.. code-block:: python

import os

from cassandra.policies import ColDesc, AES256ColumnEncryptionPolicy, AES256_KEY_SIZE_BYTES
Expand Down Expand Up @@ -57,6 +58,7 @@ supplied parameters. For example, we can create a prepared statement to insert
by executing the following code after creating a :class:`~.Cluster` in the manner described above:

.. code-block:: python

jgillenwater marked this conversation as resolved.
Show resolved Hide resolved
session = cluster.connect()
prepared = session.prepare("insert into ks1.table1 (column1) values (?)")
session.execute(prepared, (1000,))
Expand All @@ -70,6 +72,7 @@ standard serialization methods employed by the driver. The result is then encry
of the policy. Using this approach the example above could be implemented along the lines of the following:

.. code-block:: python

jgillenwater marked this conversation as resolved.
Show resolved Hide resolved
session = cluster.connect()
session.execute("insert into ks1.table1 (column1) values (%s)",(cl_policy.encode_and_encrypt(col_desc, 1000),))

Expand All @@ -88,4 +91,4 @@ of the cryptography package, although wheels exist for many common platforms.

Client-side encryption has been implemented for both the default Cython and pure Python row processing logic.
This functionality has not yet been ported to the NumPy Cython implementation. During testing,
the NumPy processing works on Python 3.7 but fails for Python 3.8.
the NumPy processing works on Python 3.7 but fails for Python 3.8.