Closed DubbaThony closed 1 year ago
New PHP has #[\SensitiveParameter]. I think it would be great to have it added, for example to ec->keyFromPrivate($key) since handling keys is handling sensitive information.
#[\SensitiveParameter]
ec->keyFromPrivate($key)
What this does, is hides key from stack traces and such.
Feel free to prepare MR
Done. See #46
@ldudzsim Please double check if I didn't miss any privkey anywhere.
New PHP has
#[\SensitiveParameter]
. I think it would be great to have it added, for example toec->keyFromPrivate($key)
since handling keys is handling sensitive information.What this does, is hides key from stack traces and such.