You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why doing anything in my getters or setters the encrypted version is also passed through those functions destroying the integrity of the data.
Is there a way to change things so that the encryption uses the direct properties? Via reflection perhaps?!
At least please add documentation code like below for other users with the need to format or unformat data and use encryption at the same time.
`
public function setNumber($number)
{
// Don't jack with the encrypted data only the non-encrypted data.
if ( substr( (string) $number, -6 ) == "=” ) {
$this->number = $number;
} else {
// strip formating for phone number or social security numbers
$this->number = preg_replace( '/\D/', '', (string) $number );
}
return $this;
}
`
The text was updated successfully, but these errors were encountered:
Why doing anything in my getters or setters the encrypted version is also passed through those functions destroying the integrity of the data.
Is there a way to change things so that the encryption uses the direct properties? Via reflection perhaps?!
At least please add documentation code like below for other users with the need to format or unformat data and use encryption at the same time.
`
public function setNumber($number)
{
// Don't jack with the encrypted data only the non-encrypted data.
if ( substr( (string) $number, -6 ) == "=” ) {
$this->number = $number;
} else {
// strip formating for phone number or social security numbers
$this->number = preg_replace( '/\D/', '', (string) $number );
}
}
`
The text was updated successfully, but these errors were encountered: