But it's certainly correct that the process is completely specified. There's a python library that you can use to play around with keys from numbers, maybe 'ku' (key utils), don't remember.
And what name of this library? I will be very appreciate you