Skip to content

Tag: openssl

PHP’s openssl_sign Equivalent in Node JS

I am (slowly) learning Node JS and trying to use it in place of a PHP script I have. I need to sign a string I have assembled with SSL to pass on to a curl request. In PHP, this is how I’ve done it: So I’m trying to generate the evuivalent of $signed_signature, but I’m not sure how to

Installing Composer OpenSSL Issue

I am trying to install composer however when I go to install it I get this error: I currently have php 5.4.31 and I am running WAMP2.2 I’ve checked my php.ini file in the bin/php/php5.4.31/ and ensured that the following line is uncommented: The error still resolves and I’m at a loss as to how I c…

Generating cryptographically secure tokens

In order to generate a 32 character token for access to our API we currently use: I have read that this method is not cryptographically secure as it’s based on the system clock, and that openssl_random_pseudo_bytes would be a better solution as it would be harder to predict. If this is the case, what wo…