Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xor encryption

Featured Replies

Posted

Hi all,

Whilst I am coding my first keygen me, I thought I might experiment with a bit of simple xor encryption. I have done a bit of research and want to double check to see if I understand this, example code below:

mov eax, 15
mov ecx, 20
xor eax, ecx
mov eax, offset Buffer
xor eax, eax
xor ecx, ecx

Now... 15 xor 20 = 27, therefore would 27 be stored in the buffer according to this code?!?

Cheers, Tipidy

Hi all,

Whilst I am coding my first keygen me, I thought I might experiment with a bit of simple xor encryption. I have done a bit of research and want to double check to see if I understand this, example code below:

mov eax, 15
mov ecx, 20
xor eax, ecx
mov eax, offset Buffer
xor eax, eax
xor ecx, ecx

Now... 15 xor 20 = 27, therefore would 27 be stored in the buffer according to this code?!?

Cheers, Tipidy

erm nope it wont... considering you haven't even written to the buffer

mov eax, 15					 ; eax now 15
mov ecx, 20 ; ecx now 20
xor eax, ecx ; eax now is 15 ^ 20
mov eax, offset Buffer ; eax is now pointing to the buffer (you just killed the xor result here)
xor eax, eax ; eax = 0
xor ecx, ecx ; ecx = 0

you to write it into the buffer (assuming the buffer is 4kb or more..) like this

mov eax, offset Buffer
mov dword ptr [eax], (15 xor 20); this is the hard coded way

think you need to learn assembly code a bit more :)

  • Author

@evlncrn8

Thank you, I should of tested some code before posting it my bad. But yeah your right, I do still have a bit to learn on assembly but I am getting there slowly ;)

mov eax, offset buffer
mov dword ptr [eax], (15 xor 20)

Cheers, Tipidy

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.