The crypt module was removed in Python 3.13. Add the utility function
to replace crypt.crypt which is used by a few projects. Note that
the function internally calls libcrypt library, so that we don't have
to re-implement its algorithm in python layer.
Change-Id: Ibe6748068b8145fdc7ece384c94a923d1032de5f