diff --git a/src/libcalamares/PythonJob.cpp b/src/libcalamares/PythonJob.cpp
index d6913ecd34fcbff18fe13ba1cdb534db09382340..e0097262791ec8ac422d1adf9816514a35f61a0b 100644
--- a/src/libcalamares/PythonJob.cpp
+++ b/src/libcalamares/PythonJob.cpp
@@ -206,6 +206,15 @@ BOOST_PYTHON_MODULE( libcalamares )
             "subprocess.CalledProcessError if something went wrong."
         )
     );
+    bp::def(
+        "obscure",
+        &CalamaresPython::obscure,
+        bp::args( "s" ),
+        "Simple string obfuscation function based on KStringHandler::obscure.\n"
+        "Returns a string, generated using a simple symmetric encryption.\n"
+        "Applying the function to a string obscured by this function will result "
+        "in the original string."
+    );
 }