Example: Base-64 Encoder/Decoder Sample Codes - Cisco WVC210 Reference Manual

Network camera exported cgi commands
Hide thumbs Also See for WVC210:
Table of Contents

Advertisement

Admin-Level CGI Commands

Example: Base-64 Encoder/Decoder Sample Codes

Length
0x00 0x00 0x01 0xFD 0xC1 0x01 0xF4 Data... Data Data ....
Example: Base-64 Encoder/Decoder Sample Codes
Cisco Small Business Network Camera Exported CGI Commands
The padding contains some long commands. For example, command 0xC1 needs
length 500 data.)
Length
Total= 500 Bytes
Cmd
0x1FD = 509 (total length = 509 bytes)
0x01F4 = 500 (length of command 0xC1 = 500 bytes)
// Standard BASE64 table
// char keyStr[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
789+/=";
// SerComm BASE64 table
char keyStr[] =
"ACEGIKMOQSUWYBDFHJLNPRTVXZacegikmoqsuwybdfhjlnprtvxz0246813
579=+/";
//--------------------------------------------------------
//
Description:
//
Input:
//
//
Output:
//
//
Return:
//
//--------------------------------------------------------
int encode64(char i_buf[], char o_buf[])
{
char chr1 = (char)0;
....
Encrypt the input data with the base64
char i_buf[]- input buffer
char o_buf[]- output buffer
encrypted string length
End
...
...
...
0xBF 0x00
3
44

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wvc2300Pvc2300

Table of Contents