Expose CalamaresUtils::obscure as libcalamares.utils.obscure.
This commit is contained in:
parent
f8078be2fd
commit
d99d7bfdff
@ -206,6 +206,15 @@ BOOST_PYTHON_MODULE( libcalamares )
|
|||||||
"subprocess.CalledProcessError if something went wrong."
|
"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."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user