titan21 Posted October 24, 2011 Share Posted October 24, 2011 I am looking for a way to encrypt a string using PKCS7. I have seen openssl_pkcs7_encrypt but this involves the creation of temporary files which I don't really need. Is there a way to do this? Quote Link to comment https://forums.phpfreaks.com/topic/249709-pkcs7-encryption/ Share on other sites More sharing options...
cunoodle2 Posted October 24, 2011 Share Posted October 24, 2011 From what I know that is a FILE encryption as apposed to a string. According to the manual it states "openssl_pkcs7_encrypt() takes the contents of the file named infile and encrypts them using an RC2 40-bit cipher" Can you give me a little more info on what you are trying to do? Maybe there is a better/different way to do what you are looking for. Are you also looking to be able to decrypt said string/file or is this 1 way (I.E. password, etc..)? Quote Link to comment https://forums.phpfreaks.com/topic/249709-pkcs7-encryption/#findComment-1281779 Share on other sites More sharing options...
titan21 Posted November 8, 2011 Author Share Posted November 8, 2011 It was actually to encode a PayPal button. I believe I need to use PKCS7 to generate the final encrypted button. Using a file seemed to be a little superfluous to requirements when I just want to generate an encrypted string. Quote Link to comment https://forums.phpfreaks.com/topic/249709-pkcs7-encryption/#findComment-1286325 Share on other sites More sharing options...
redarrow Posted November 8, 2011 Share Posted November 8, 2011 Sorry but paypal use there own encryption method, and no you can not write it your self sorry. paypal got a grate forum there self, and there very friendly ok. read this please. http://www.stellarwebsolutions.com/en/articles/paypal_button_encryption_php.php Quote Link to comment https://forums.phpfreaks.com/topic/249709-pkcs7-encryption/#findComment-1286367 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.