In ionic-angular capacitor application how to hash and store password in local storage for offline feature

Hello, In an ionic-angular capacitor application how to hash and store password in local storage for offline feature.
Is there any npm plugin which can be used for password hashing?
And which one is best? whether to hash password or encrypt password?