-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc4f1fe
commit 481a097
Showing
6 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
1 www.coolapk.com coolapk 123456 | ||
2 www.wechat.com 13207178976 123456 | ||
3 www.qq.com 964302865 123456 | ||
4 www.aliyun.com aliyun 123456 | ||
5 www.taobao.com taobao 123456 | ||
6 www.163.com 163613 123456 | ||
1 www.coolapk.com coolapk 032547 | ||
2 www.wechat.com wechat 032547 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "secData.h" | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
/* | ||
加密 | ||
@param char* 传入一个字符串 | ||
*/ | ||
void encryptData(char* str) { | ||
int index = 0; | ||
while (*(str + index) != '\0') { | ||
*(str + index) |= -0x80; | ||
*(str + index) ^= 0x1; | ||
index++; | ||
} | ||
} | ||
|
||
/* | ||
解密 | ||
@param char* 传入一个字符串 | ||
*/ | ||
void decryptData(char* str) { | ||
int index = 0; | ||
while (*(str + index) != '\0') { | ||
*(str + index) ^= 0x1; | ||
*(str + index) ^= 0x80; | ||
index++; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
void encryptData(char* str); | ||
void decryptData(char* str); |