Salted Passwords in Extbase FeUser Domain Model

For a current project I needed to create an "Change Password" functionality with Extbase. Since the passwords on this projects had to be encrypted with saltedpasswords extension, I needed them to be encrypted in my Extbase domain model. Here are the relevant lines of code to achieve this: