I need to know if any kind of file can be signed digitally, using RSA, a certificate, and that stuff, or if only certain kind of files can be signed. All this, using PHP.
In example: Can a plain text file be signed digitally?, What about images (png, jpeg, bmp)?
I don’t need to “attach” an image with a graphic signature.
Thank you for your help.
Using phpseclib, a pure PHP RSA implementation (updated here):
The analog to that with the CLI openssl is as follows: