Steve Criddle @steve ?

active 7 months ago
  • Steve Criddle wrote a new blog post: PHP Browser Caching Tutorial – Part One   7 months, 2 weeks ago · View

    This is the first part of a two-part article about using PHP to influence browser caching.  This part will cover caching using HTTP 1.0 and the second part will cover caching using HTTP 1.1. PHP allows you to tell the user’s browser that page content should not be cached.  The following example code can be found [...]

  • Steve Criddle commented on the blog post OpenSSL and PHP Tutorial – Part Two   1 year, 2 months ago · View

    Hi CJ101. I suspect something is trying to mess with the encoding of your binary data along the way. I would suggest using base64 encoding for the transmission and/or storage. Although it will make the data roughly 1/3 larger, it should eliminate your problems because all of the characters used by base64 are ASCII characters. [...]

  • Steve Criddle commented on the blog post OpenSSL and PHP Tutorial – Part Two   1 year, 9 months ago · View

    Thanks for your feedback Snehamoy. I think you mean RSA_RC4 rather than PC4. I’m not sure if that relates just to RC4 encryption, or a combination of RSA asymmetric encryption and RC4 symmetrical encryption. If it’s just RC4 encryption, I don’t believe there is native support for it in PHP, but I did find a [...]

  • Steve Criddle wrote a new blog post: A Python equivalent to PHP’s openssl_open() function   1 year, 10 months ago · View

    For the project I am currently working on, we had a need to decode data in Python that had been encoded using PHP’s openssl_seal() function. Python does not appear to have a direct equivalent function.  The M2Crypto package can decode quite a few different formats, but openssl_seal() and openssl_open() aren’t included. Fortunately, M2Crypto contains the components required to decode this [...]

  • Steve Criddle wrote a new blog post: OpenSSL and PHP Tutorial – Part Two   2 years, 5 months ago · View

    This is the second part of a two-part article about using the OpenSSL functionality in PHP to encrypt and decrypt data.  Part One covers key generation .  This part shows you how to use those keys to encrypt and decrypt data. Loading a key file There are a couple of ways to encrypt data using OpenSSL.   But before you [...]

  • Steve Criddle wrote a new blog post: OpenSSL and PHP Tutorial – Part One   2 years, 5 months ago · View

    This is the first part of a two-part article about using the OpenSSL functionality in PHP to encrypt and decrypt data.  This part will cover key generation and the second part will show you how to use those keys to encrypt and decrypt data . The project I am currently working on requires some JSON data to [...]