I am looking into php openSSL library and need to sign a string using pub and priv key. The function openssl_pkcs7_sign()
from documentation it seem to take the file path as a file parameter but I have string in a variable that I need to encrypt. I see all of its examples points to writing files.
Is there any way I can pass the string into the function? Or perhaps some other functions available? Writing file to disk doesn't seem very practical for my use cases.