I am sending this program inorder that every body can tell me there notes on it....
I know many may say that this encoding process is very simple..but I would like to tell them that they can change the coding procedure..... This program can show a simple technique of how the program encode or decode... My new project is how to encrypt and put password in it....


I am still a win32asm student so be quite gentle with your tips on my program!!!
Posted on 2002-10-10 22:16:16 by mak1304
This PROC does not restore the registers pushed on the stack:
coder proc stmemptr:DWORD,countno:DWORD

push esi
push ebx
push ecx
mov esi,stmemptr
mov ecx,countno
sil:
mov ebx,ecx
xor byte ptr [esi+ebx],3
sub ecx,1
jnz sil
invoke WriteFile,hFile,stmemptr,countno,offset bReadWrite,0
cmp rFlag,0
je enc
invoke MessageBox,NULL,ADDR decodest,ADDR AppName,MB_OK
jmp endo
enc:
invoke MessageBox,NULL,ADDR encodest,ADDR AppName,MB_OK
endo:
ret
coder endp
Might want to use:
coder proc uses esi ebx ecx, stmemptr:DWORD,countno:DWORD

mov esi,stmemptr
mov ecx,countno
sil:
mov ebx,ecx
xor byte ptr [esi+ebx],3
sub ecx,1
jnz sil
invoke WriteFile,hFile,stmemptr,countno,offset bReadWrite,0
cmp rFlag,0
je enc
invoke MessageBox,NULL,ADDR decodest,ADDR AppName,MB_OK
jmp endo
enc:
invoke MessageBox,NULL,ADDR encodest,ADDR AppName,MB_OK
endo:
ret
coder endp
Posted on 2002-10-10 23:29:56 by bitRAKE
Moved to main: there is no algorithms in this post...
Posted on 2002-10-11 00:55:36 by JCP