简体   繁体   中英

Is there an OpenCL implementation of the unix crypt(3) function?

I want to use the unix crypt function in an OpenCL program. Does something like that already exist or will I have to translate it on my own?

You've probably found an answer by now, but in case anyone else comes here from a search, John The Ripper is open source and has OpenCL acceleration for several hashing algorithms, including the 3DES used in BSD crypt().

https://github.com/magnumripper/JohnTheRipper/tree/bleeding-jumbo/src/opencl

You might be interested in this paper I found on AMD's website: http://developer.amd.com/resources/documentation-articles/articles-whitepapers/bulk-encryption-on-gpus/

It covers implementing AES in OpenCL. Your goal with the encryption is important. Since you suggested crypt , I am guessing that you're just playing around. But if you want to actually apply the algorithm, it is important to choose the algorithm based on your goals. There are very important differences private key, public key, and password hashing algorithms.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM