[1281] Core/Password: fixed generation code

Signed-off-by: Chiruclan <development@chiruclan.de>