Archive for February, 2008

OpenSSL thread safe secure connections

Time ago I wrote some articles to explain, with simple examples, the use of OpenSSL API s for file encryption:

Now, in this article, I’ll show how to add secure thread safe connections to your software using OpenSSL .

As reported by official FAQs, Multi-threaded applications must provide two callback functions to OpenSSL by calling CRYPTO_set_locking_callback() and CRYPTO_set_id_callback() . The library below, sslc ( Secure Sockets Layer Connections ) , sets up this two callbacks and offers two functions to the application to handle secure connections : open_sslc and close_sslc .

Read more »

Wordpress plugin, WP interests : generate a chart of your interests

Wp interests screenshot 1

This is a very simple wordpress plugin that uses Google Chart API to create and display a chart of your interests on the basis of blog’s categories and posts.

Version : 0.1

Download : http://ardoino.com/pub/wordpress/wp-interests.zip

Installation

1. Unzip into your `/wp-content/plugins/` directory..
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Edit your current theme adding the few lines below (for example in siderbar.php)

    <?php
        $wp_interests = new wp_interests();
        $wp_interests->wpi();
    ?>

3.1. Defining size of the chart

        <?php
            // Chart width: 300px , height: 200px
            $wp_interests = new wp_interests();
            $wp_interests->wpi(array("size" => "300x200"));
        ?>

3.2. Defining excluded categories from chart

        <?php
            // Excluding 'Humor' and 'General' categories from chart
            $wp_interests = new wp_interests();
            $wp_interests->wpi(array("size" => "300x200", "exclude_cats" => array("Humor", "General")));
        ?>

3.3. Renaming long categories names in chart

        <?php
            // Renaming 'Ajax/Javascript' in 'Ajax/JS' and 'Crypto/Security' in 'Crypt/Sec'
            $wp_interests = new wp_interests();
            $wp_interests->wpi(array(
                "size" => "300x200",
                "exclude_cats" => array("Humor", "General"),
                "rename_cats" => array("Ajax/Javascript" => "Ajax/JS", "Crypto/Security" => "Crypt/Sec")
            ));
        ?>

3.4. For more options visit http://ardoino.com
4. That’s it!

Changelog :

  • 0.1 -> initial release

Sony Vaio TZ , like no other

Like no other logoSony Vaio TZ image 1

 

 

My Sony Vaio TZ190N laptop powered by Gentoo Linux

Only one word… Wow!!

Features:

  • Case : Black carbon fiber
  • CPU: Intel­® Core™2 Duo Processor U7600 1.2Ghz
  • RAM: 2GB DDR2
  • HDD : 32GB Solid State Disk
  • Graphic : Intel® Graphics Media Accelerator 950, 224MB
  • Screen : WXGA LCD ( XBRITE-HiColor™ Technology )  11.1″ Razor-Thin Panel LED backlight for brilliant colors and clarit. Up to 1366×768
  • Biometric Fingerprint Sensor Trusted Platform Module (TPM) TCG Ver.1.2 compliant
  •  DVD±RW
  • Built-in MOTION EYE® camera and microphoneSony Vaio TZ image 2
  • Networking :
    • Intel® PRO/Wireless 4965AGN Network Connection (802.11a/b/g/n)
    • 10Base-T/100Base-TX/1000Base-T
    • Integrated Bluetooth® Technology
    • Integrated V.92/V.90 modem (RJ-11)
  • Battery : 7 hours ( 11 with the 9 cells large capacity)
  • Weigh : 2.6 lbs ( 1.19 Kg )
  • Dimension : 0.9″(W) 0.8″ - 1.17″(H) 7.8″(D)

I love it!

DES, Blowfish, IDEA, MD5: implemtentation ( for Ondaquadra E-zine )

[This article appeared on OndaQuadra0B Elettronic Magazine - Mar 2004 ]
OpenSSL/DES,OpenSSL/Blowfish,OpenSSL/IDEA,OpenSSL/MD5: implemtentation
UNISFED written and coded by Paolo Ardoino <paolo.ardoino@gmail.com>

0. Intro
1. Descrizione algoritmi
2. Funzioni & headers DES
3. Funzioni & headers Blowfish
4. Funzioni & headers IDEA
5. Funzioni & headers MD5

In questo articolo vedremo come implementare quattro tra gli algoritmi
piu’ famosi e piu’ usati nel campo della crittografia:
DES,Blowfish,IDEA,MD5
Read more »

PHP class, pvox : Festival text-to-speech client

University of Edinburgh’s Festival Speech Synthesis Systems is a free software multi-lingual speech synthesis workbench that runs on multiple-platforms offering black box text to speech, as well as an open architecture for research in speech synthesis. It designed as a component of large speech technology systems.

Since I had problems with clients included in Speech Tools ( part of Festival software ),
I wrote Pvox .

Pvox is a PHP 5 client for the Festival Speech Synthesis Systems. It connects to a festival server, sends commands and the string to process and receives a wave file. It could be used as a command line script or to play spoken audio on a browser.

Read more »

C functions for socks4 / socks5 list validation

As for PHP 5, I wrote two functions for socks 4 and socks 5 lists validation.

The code:
Read more »

Next Page »