/********************************************************************************* * Copyright: (C) 2018 LingYun IoT System Studio * All rights reserved. * * Filename: crypto.c * Description: This file is LingYun crypto library * * Version: 1.0.0(2018年12月20日) * Author: Guo Wenxue * ChangeLog: 1, Release initial version on "2018年12月20日 11时56分04秒" * ********************************************************************************/ #include int encrypt(char *plaintext, char *ciphertext, int size) { int i; if( size < strlen(plaintext) ) { return -1; } for(i=0; i