hashPII method

UserTraits hashPII()

Implementation

UserTraits hashPII() {
  return UserTraits(
    address: address,
    // Assuming address is not PII
    company: company,
    // Assuming company is not PII
    age: age,
    // Assuming age is not PII
    avatar: avatar,
    // Assuming avatar is not PII
    birthday: birthday,
    // Assuming birthday is not PII
    createdAt: createdAt,
    description: description,
    email: _hashString(email),
    // Hashing PII
    firstName: _hashString(firstName),
    // Hashing PII
    lastName: _hashString(lastName),
    // Hashing PII
    name: _hashString(name),
    // Hashing PII
    phone: _hashString(phone),
    // Hashing PII
    title: title,
    username: _hashString(username),
    // Hashing PII
    website: website,
    custom: custom, // Custom fields are not hashed here
  );
}