掌上识别王。汉字转换数字掌上识别王软件最好, 掌上识别王是一款用于文字识别、汉字转换数字的工具类软件,效果可媲美一般的扫描仪,高识别精准率。
void main()
{
unsigned char src[]="我是一个中国人";
int len=strlen((char *)src);
int i;
for(i=0;ilen;i++)
{
printf("%x ",src[i]);
}
printf("\n");
}
最简单的。。变成16进制不加密,一般人也不知道这是汉字。如果要复杂点在这个编码上再加点密了。
output: ce d2 ca c7 d2 bb b8 f6 d6 d0 b9 fa c8 cb
VB sample 代码:
Private Declare Function icePub_dictionaryCodeTransferString Lib "icePubDll.dll" (ByVal strDictionaryFilename As String, ByVal strSrcString As String, ByVal strCode As String, ByVal srcWordLen As Integer, ByVal strFenge As String) As Integer
Private Sub Form_Load()
Dim a2 As Integer
Dim strCode As String
strCode = Space(1024)
a2 = icePub_dictionaryCodeTransferString("e:\数大写字典.txt", "1234567890", strCode, 1, "")
MsgBox strCode
End Sub
另编译好的可运行的软件(包括代码)已发邮件,其中icepubdll.dll要放到windows\system32下
只能直接对应转换
其中文件“数大写字典.txt”内容如下:
1 壹
2 贰
3 叁
4 斯
5 伍
6 陆
7 柒
8 捌
9 玖
0 零