Quantcast

Monthly Archives: February 2007

Howto base64 decode with C/C++ and OpenSSL

Someone asked for an example of decoding with OpenSSL on the Howto base64 encode with C/C++ and OpenSSL post. So here it is: #include <string.h> #include <openssl/sha.h> #include <openssl/hmac.h> #include <openssl/evp.h> #include <openssl/bio.h> #include <openssl/buffer.h> char *unbase64(unsigned char *input, int length); int main(int argc, char **argv) {   char *output = unbase64("WU9ZTyEA\n\0", strlen("WU9ZTyEA\n\0"));   printf("Unbase64: [...]
Posted in programming | Tagged , , | 8 Comments

SOAP vs REST

Recently it seems like the SOAP vs REST debate is heating up. Most of the debate seems to be leaning toward convincing people to not use SOAP based on its increasing complexity. Different people have different views on what REST is but in general if you look at the SOAP specifications or SOAP Standards and [...]
Posted in meta | Tagged , , | 2 Comments

Acrobat Reader 7 and FC6

I broke down and wanted to install Adobe Acrobat Reader 7 on my FC6 box to replace xpdf. After installing it from the tar.gz version the acroread startup script bombed out with the error: expr substr 2400000000000 1 After a little searching I didn't find much help so I started looking at the script myself [...]
Posted in linux, software, system administration, utilities | 4 Comments

Dynamic DNS with EC2 and ZoneEdit

There seems to be a lot of questions on how to set up dyndns with EC2. It is fairly easy to do but I haven't seen anyone put everything together to do it yet so I figured I would write a little example using ZoneEdit. I picked ZoneEdit because it lets you sign up and [...]
Posted in system administration | Tagged , | 1 Comment