Click here to Skip to main content
15,878,945 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
encrypt5: push eax
        mov  al, byte ptr[eax]
        push ecx
        and eax, 0x7C
        ror eax, 1
        ror eax, 1
        inc eax
        mov edx, eax
        pop ecx
        pop eax
        mov byte ptr[eax], dl
        xor edx, ecx
        mov eax, edx
        rol al, 1
        ret
Posted
Updated 5-Apr-14 21:48pm
v2
Comments
Richard MacCutchan 6-Apr-14 3:51am    
I don't think you can, since the and eax, 0x7C loses bits from the original character.
Rage 8-Apr-14 4:53am    
Not sure, it is pushed on the stack at first and popped later on.
Richard MacCutchan 8-Apr-14 5:05am    
No it's loaded from memory, and then the converted value is stored back there. As bling suggests, this is more hashing than encryption.
[no name] 7-Apr-14 19:29pm    
Perhaps it is a hash, not reversible encryption.

http://en.wikipedia.org/wiki/Hash_function

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900