Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FmclientUi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shuai.liu
FmclientUi
Commits
cb967bce
Commit
cb967bce
authored
Mar 08, 2019
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hex格式输出请求加密后数据
parent
7b0a7468
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletions
+14
-1
main.cpp
+1
-0
qfmclient.cpp
+12
-0
qfmclient.h
+1
-1
No files found.
main.cpp
View file @
cb967bce
...
...
@@ -35,6 +35,7 @@ int main(int argc, char *argv[])
FPE
::
SetMy
(
TRUE
);
std
::
string
rData
=
FPE
::
ReadDate
((
char
*
)
filePath
.
toStdString
().
c_str
());
OutputDebugStringA
(
rData
.
c_str
());
if
(
!
VerifySign
(
filePath
.
toStdString
(),
rData
))
{
...
...
qfmclient.cpp
View file @
cb967bce
...
...
@@ -864,6 +864,7 @@ int QFmClient::sendAESData2Proxy(int sock, char *buf, int length)
memcpy
(
out
,
&
header
,
header_size
);
toSendLength
=
toSendLength
+
header_size
;
//outputHex(out, toSendLength);
int
curSendLength
=
0
;
int
rlt
=
0
;
while
(
curSendLength
<
toSendLength
)
...
...
@@ -888,6 +889,17 @@ int QFmClient::sendAESData2Proxy(int sock, char *buf, int length)
return
rlt
;
}
void
QFmClient
::
outputHex
(
char
*
out
,
int
length
)
{
FILE
*
stream
;
stream
=
fopen
(
"hex.txt"
,
"w"
);
for
(
int
i
=
0
;
i
<
length
;
i
++
)
{
fprintf
(
stream
,
"%02x "
,
(
unsigned
char
)(
out
[
i
]));
}
fclose
(
stream
);
}
int
QFmClient
::
recvAESDataFromProxy
(
int
sock
,
char
*
buf
,
int
maxBufferLength
)
{
#define MAX_RECV_LENGTH 40960
...
...
qfmclient.h
View file @
cb967bce
...
...
@@ -67,7 +67,7 @@ public:
void
BackupPosReq
(
char
*
req
);
int
sendAESData2Proxy
(
int
sock
,
char
*
buf
,
int
length
);
int
recvAESDataFromProxy
(
int
sock
,
char
*
buf
,
int
maxBufferLength
);
void
outputHex
(
char
*
out
,
int
length
);
public
slots
:
void
SetTransactionId
(
QString
fmId
);
//退款流程1, 从输入获取长码
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment