Out of curiosity, i just tested this for me & it works! Thanks @Stian and @jaime.bosque But for me it required a restart though
Also tried one code snippet to generate hash password which somebody had shared before on this forum. It works too but this is more complicated. Whatever Stian and Jaime suggested is so cool.
python -c 'import bcrypt; hash = bcrypt.hashpw("passwordGoesHere", bcrypt.gensalt(rounds=10, prefix=b"2a")); print(hash);'