Pages: 1 ... 3 4 [5]
|
 |
|
Author
|
Topic: Encryption procedure (Read 41284 times)
|
Sevag.K
|
if anyone is interested, i've been working on AES ciphers and they are considered practically uncrackable and have a byte to byte translation.
just released the preliminary code on the HLA forum, i can convert that to MASM syntax. code only for encryption at this point, but decryption is easy enough to implement, i just haven't had the time yet.
|
|
|
Logged
|
|
|
|
Magnum
|
Thanks.
I am interested in your encryption code.
|
|
|
Logged
|
Have a great day, Andy
|
|
|
Sevag.K
|
okay, but be warned that the masm syntax is compiled from hla syntax so it will be a bit hard to read.
an overview:
the Aes procedure is called to initialize the expansion table. it takes three arguments, a constant for bit size (0, 1, or 2), a pointer to the key data and the size of the key.
the Cipher procedure takes two arguments, a pointer to a 16byte source to encrypt and a pointer to a buffer to store the encryption.
[edit:updated below]
|
|
« Last Edit: November 12, 2010, 12:05:05 AM by Sevag.K »
|
Logged
|
|
|
|
hutch--
Administrator
Member
    
Posts: 12013
Mnemonic Driven API Grinder
|
I agree with Cork here, find a secure way to send a high quality random pad of a large size to the recipient then send them messages that only have to specify the start offset of the pad. A 1 megabyte pad can be used 1000 times with unique pad sections, a larger pad can be used many more time while providing a unique pad for each message.
My own preference is a SHR XOR - XOR SHL for up and down but the technique will break the heart of supercomputers as its stats are impressive, 256^characters in the message with no method of determining which one is correct.
|
|
|
Logged
|
|
|
|
Sevag.K
|
last one didn't print out all right. anyway, i've made a more concrete version into a library with encryption and decryption. attached is the library with sources, including a masm source compilation. i've included the hla sources since those are commented and formatted.
|
aes.zip (25.67 KB - downloaded 370 times.)
|
|
Logged
|
|
|
|
hutch--
Administrator
Member
    
Posts: 12013
Mnemonic Driven API Grinder
|
Sevag,
Do us a favour and put long source code blocks into a zip file as they are hard to read pasted into a forum edit window.
|
|
|
Logged
|
|
|
|
|
Pages: 1 ... 3 4 [5]
|
|
|
 |