hashcat Forum
void _des_crypt_decrypt? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Developer (https://hashcat.net/forum/forum-39.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-40.html)
+--- Thread: void _des_crypt_decrypt? (/thread-5602.html)



void _des_crypt_decrypt? - John Doe - 07-04-2016

I'm working on support for an extra algorithm. The algorithm consists of a few well knows hashing and encryption algorithms. I've successfully implemented most steps, recycling code of a bunch already available OpenCL kernels. However, I'm missing one step: DES decryption.

Perhaps the code is available and was removed by the developers of the DES-based algorithms (1500, 3000 etc.) since it's not used in the specific hash formats. If this is the case, can you please let me know?

Thanks a lot!


RE: void _des_crypt_decrypt? - atom - 07-05-2016

For pure DES encryption or decryption you might want to check out the old DES oracle algorithm in -m 3100


RE: void _des_crypt_decrypt? - John Doe - 07-05-2016

(07-05-2016, 08:15 AM)atom Wrote: For pure DES encryption or decryption you might want to check out the old DES oracle algorithm in -m 3100

The old Oracle hashing algorithm only usese DES encrypt, not decrypt...  Sad


RE: void _des_crypt_decrypt? - atom - 07-05-2016

In DES, for decrypt, you just access the sboxes in reverse. See http://www.scs.stanford.edu/histar/src/pkg/uclibc/libcrypt/des.c how it handles de_keysl[] and en_keysl[]


RE: void _des_crypt_decrypt? - John Doe - 07-09-2016

(07-05-2016, 08:56 AM)atom Wrote: In DES, for decrypt, you just access the sboxes in reverse. See http://www.scs.stanford.edu/histar/src/pkg/uclibc/libcrypt/des.c how it handles de_keysl[] and en_keysl[]

Winner winner chicken diner! Smile

I was not aware of the reverse S boxes part. I've implemented '_des_decrypt_keysetup' with reverse filling of the Kc and Kd arrays and works like a charm.

Thanks for your reply!

John