implemented missing functions (needed to generatre password hash) on
android