APUE Learning Example Source Code
guowenxue
2023-11-06 f63647218e192628aa8598d504e064529398f159
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*********************************************************************************
 *      Copyright:  (C) 2020 LingYun IoT System Studio
 *                  All rights reserved.
 *
 *       Filename:  main.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(2020年04月04日)
 *         Author:  Guo Wenxue <guowenxue@gmail.com>
 *      ChangeLog:  1, Release initial version on "2020年04月04日 20时57分10秒"
 *                 
 ********************************************************************************/
 
#include <stdio.h>
#include "encrypto.h"
 
int main (int argc, char *argv[])
{
    char    *str="hello world"; 
    char     ciphertxt[128];
    char     text[128];
 
    encrypto(str, ciphertxt, 128);
    printf("cipher text: %s\r\n", ciphertxt);
 
    decrypto(ciphertxt, text, 128);
    printf("text: %s\r\n", text);
 
 
    return 0;