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.

Ciphers In (m)asm

Featured Replies

Posted

Hi people ,

I wrote a few ciphers in (M)ASM , these are:GRAIN,ICE,KASUMI,MERCY,MESH,PLAYFAIR.My request:can anybody test it on his OS ? I have tested it on W2k but maybe it would not work on other OS. :)

Edit:

Ok , i dropped the ripped ciphers out and I will revise them.

Edit2:

-revised version of KASUMI

-new cipher: Camellia

Edit3:

-new cipher: FROG

Edited by Soul

KeyInitialization proc cache:DWORD,szKey:DWORD,szKeylength:DWORD,szIVlength:DWORD

ADD ESP,4

MOV EAX,DWORD PTR SS:[ESP+4h]

MOV ECX,DWORD PTR SS:[ESP+8h]

MOV EDX,DWORD PTR SS:[ESP+0Ch]

MOV DWORD PTR DS:[EAX+280h],ECX

MOV ECX,DWORD PTR SS:[ESP+10h]

MOV DWORD PTR DS:[EAX+284h],EDX

MOV DWORD PTR DS:[EAX+288h],ECX

LEAVE

RETN

KeyInitialization ENDP

pretty bad coding m8, u sure u know what you're doing...?

firstly its a proc that takes params.. so it should end in a ret, considering it has an ebp frame

leave isnt needed either.. and the add esp,4 at the top makes no sense what so ever

should be like...

KeyInitialization proc cache:DWORD,szKey:DWORD,szKeylength:DWORD,szIVlength:DWORD

MOV EAX, [cache]

MOV ECX, [szKey]

MOV EDX, [szKeylength]

MOV DWORD PTR DS:[EAX+280h],ECX

MOV ECX,DWORD PTR SS:[szIVlength]

MOV DWORD PTR DS:[EAX+284h],EDX

MOV DWORD PTR DS:[EAX+288h],ECX

RET

KeyInitialization ENDP

looks better.. no?

Edited by evlncrn8

Suggests to me that its ripped from some other app? Perhaps CrypTool?

Did you code these or are they pulled from somewhere else?

He gives the info himself:

Ripped from C-Source

Regards,

Soul

Tho it's more like from C assembly than from source.

Yes I think it could (should) be cleaned a bit more.

More than ever, if routines are short. Often it's not hard to even optimize em then.

Nevertheless thanks for the efforts :)

Hard to find sources for uncommon crypt n hash ****..

Edited by Ufo-Pu55y

  • Author
pretty bad coding m8, u sure u know what you're doing...?
He gives the info himself:

QUOTE

Ripped from C-Source

Regards,

Soul

Thx :)

Yeah it's correct , 3 of the sources are 100% ripped (KASUMI,MERCY,GRAIN) , the other (ICE,MESH,PLAYFAIR) are made by me himself.But thanks for response. ^^

Edited by Soul

ripped pretty damned badly... nice idea, but i'd seriously revise the code to show you actually have an understanding of the ciphers / cypher (depending on your personal spelling preference) and havent just kludged this together to look leet.. the ripping of c->asm can be done considerably better... out of curiousity, what program did you use to do the ripping?

Edited by evlncrn8

lolz

  • Author
ripped pretty damned badly... nice idea, but i'd seriously revise the code to show you actually have an understanding of the ciphers / cypher (depending on your personal spelling preference) and havent just kludged this together to look leet.. the ripping of c->asm can be done considerably better... out of curiousity, what program did you use to do the ripping?

Well , you said it , it was a idea and 3 of them are ripped only.I used OllyDbg ;) nothing more.But if you wish , you can make it better ;)

Edited by Soul

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.