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.

Basic encryption techniques

Featured Replies

Posted

Hi all,

I am searching for some basic encryption techniques that I could implement into my Masm code, for example I want to encrypt a primary number that my serial is calculated off.

Cheers Busted

Can you define the following please? 'basic' & 'encryption'

The following should work as a simple string obfuscation although it is about as safe as a gerbil at a mardi gras after-party. It does fit the bill of 'basic' and 'encryption' though. If you are interested in some real encryption though you could check out Drizz's crypto/hash library where there is a few lgorithms to choose from or you could even mix and match them to make something.

EncryptString PROC uses esi lpDecryptedString:DWORD,lpEncryptedString:DWORD  mov esi,lpDecryptedString
mov edi,lpEncryptedString xor ecx,ecx
jmp @f .repeat
rol al,cl
xor al,0DCh
stosb
add ecx,1
@@:
movzx eax,byte ptr [esi+ecx]
.until !eax
retEncryptString ENDPDecryptString PROC uses esi lpEncryptedString:DWORD, lpDecryptedString:DWORD mov esi,lpEncryptedString
mov edi,lpDecryptedString xor ecx,ecx
jmp @f .repeat
xor al,0DCh
ror al,cl
stosb
add ecx,1
@@:
movzx eax,byte ptr [esi+ecx]
.until !eax
retDecryptString ENDP

HR,

Ghandi

Edited by ghandi

Drizz's crypto/hash library dont work for me i see many many errors on this hash library.

I download this stdlib is one of Drizz's projects listed under software engineering.

stdlib is a collection of "standard" MASM functions for text, file management etc.

Found on this tread http://forum.tuts4you.com/index.php?showtopic=10116

error.bmp

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.