Appendix D

CGI Commands

Base-64 Encoder/Decoder Sample Codes

//Standard BASE64 table

//char keyStr[] = “ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=”;

//SerComm BASE64 table

char keyStr[] = “ACEGIKMOQSUWYBDFHJLNPRTVXZacegikmoqsuwybdfhjlnprtvxz0246813579=+/”;

//--------------------------------------------------------------------

//Description: Encrypt the input data with the base64

//Input:

//

char i_buf[]

- input buffer

// Output:

 

//

char o_buf[]

- output buffer

// Return:

 

 

//

encrypted string length

//--------------------------------------------------------------------

 

int encode64(char i_buf[], char o_buf[])

{

char chr1 = (char)0; char chr2 = (char)0; char chr3 = (char)0;

//These are the 3 bytes to be encoded

int enc1 = 0; int enc2 = 0; int enc3 = 0;

int enc4 = 0; //These are the 4 encoded bytes int i = 0, j = 0; //Position counter

do { //Set up the loop here

chr1 = i_buf[i++]; //Grab the first byte

if(i < strlen(i_buf))

chr2 = i_buf[i++]; //Grab the second byte

if(i < strlen(i_buf))

chr3 = i_buf[i++]; //Grab the third byte

//Here is the actual base64 encode part. //There really is only one way to do it.

enc1 = chr1 >> 2;

enc2 = ((chr1 & 3) << 4) (chr2 >> 4); enc3 = ((chr2 & 15) << 2) (chr3 >> 6); enc4 = chr3 & 63;

if(chr2 == (char)0) {

enc3 = enc4 = 64;

}

Wireless-N Internet Home Monitoring Camera

41

Page 42
Image 42
Cisco Systems WVC80N manual Base-64 Encoder/Decoder Sample Codes

WVC80N specifications

Cisco Systems WVC80N is a cutting-edge wireless security camera designed to meet the needs of both home and business users seeking reliable surveillance solutions. This IP-based camera offers a range of features that enhance security monitoring and ease of use, making it a popular choice for those looking to implement robust security measures.

One of the standout features of the WVC80N is its wireless connectivity. Utilizing advanced wireless technology, including 802.11n Wi-Fi, this camera allows for flexible installation without the need for extensive cabling. This enables users to position the camera in various locations throughout a property, ensuring optimal coverage of key areas.

The WVC80N is equipped with a high-resolution image sensor that provides clear and detailed video footage. Users can expect crisp video quality, even in low-light conditions, thanks to its night vision capabilities. The camera also includes smart motion detection that can alert users to activity within its field of view, allowing for proactive monitoring.

Another significant feature of the Cisco WVC80N is its remote viewing capability. Users can access the camera feed from anywhere using a web browser or compatible mobile devices, providing peace of mind when away from home or the office. The camera supports secure streaming options, with encryption technologies that protect sensitive video data from unauthorized access.

The WVC80N integrates seamlessly with Cisco's networking products, enhancing overall security architecture. Users can easily configure the camera settings, including resolution, frame rate, and motion detection parameters through an intuitive web interface.

In terms of design, the Cisco WVC80N has a sleek and modern appearance that can blend with a variety of environments. Its durable construction ensures longevity, while also making it suitable for both indoor and outdoor use.

Overall, the Cisco Systems WVC80N embodies a perfect combination of advanced features, user-friendly technology, and robust performance. For those looking to invest in a versatile and reliable surveillance camera, the WVC80N represents an excellent option that caters to a wide range of security needs, making it a compelling choice in the security camera market.