Security trimming for password hash and password salt