| | |
encryption
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2008
Posts: 23
Reputation:
Solved Threads: 2
; here is a simple encrypting/decrypting app.:
; on encryption it will just inc hex values represented byeach char
; on decryption dec
; on encryption it will just inc hex values represented byeach char
; on decryption dec
Assembly Syntax (Toggle Plain Text)
.386 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\masm32.inc includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib includelib \masm32\lib\masm32.lib .data? szBuff db 256 dup(?) .code start: invoke AllocConsole invoke StdIn, ADDR szBuff, sizeof szBuff lblCrypt: mov eax, offset szBuff @@: cmp byte ptr [eax],0 je lblPrint inc byte ptr [eax] inc eax jmp @B lblPrint: mov eax, offset szBuff invoke StdOut, ADDR szBuff lblDecrypt: mov eax, offset szBuff @@: cmp byte ptr [eax],0 je lblExit dec byte ptr [eax] inc eax jmp @B lblExit: mov eax, offset szBuff invoke StdOut, ADDR szBuff invoke ExitProcess, 0 end start
![]() |
Similar Threads
- How to create SHA1 Encryption program (VB.NET)
- help with/removing window's encryption on my data (Windows NT / 2000 / XP)
- 128 bit encryption (Viruses, Spyware and other Nasties)
- AIM encryption (Viruses, Spyware and other Nasties)
- Storing passwords using reversible encryption in Active Directory (Windows NT / 2000 / XP)
- c++ windows program to demonstrate encryption (C++)
- No Encryption in IE 6.0/XP Home (Web Browsers)
Other Threads in the Assembly Forum
- Previous Thread: Learning Assembly in Linux
- Next Thread: long jump in tasm
Views: 750 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for Assembly
3d 68hc11 6811 80386 :( adress array asm assembler assembly boot bootloader buffer compression cursor debug directory division docs dos draw emulator endtask error exceptions file int10h integer intel interrupt interrupts language loop newbie nohau osdevelopment print program range read remainder shape string text theory tsr x86






