Expose CalamaresUtils::obscure as libcalamares.utils.obscure.

This commit is contained in:
Teo Mrnjavac 2016-08-19 12:48:14 +02:00
parent f8078be2fd
commit d99d7bfdff

View File

@ -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."
);
}