小编alf*_*iha的帖子

OpenCL中的暴力破解(来自CUDA的端口)无效

*代码和问题的另一个更新*

刚开始学习openCL约1周左右,我试图移植一个关于强制MD5哈希来从中获取实际字符串的CUDA程序.我使用2个文件:kernel.cl和main.cpp.

//this is kernel.cl

{...*defining some md5 variables*...}

void IncrementBruteGPU(unsigned char* ourBrute, unsigned int charSetLen, unsigned int bruteLength, unsigned int incrementBy){
int i = 0;
while(incrementBy > 0 && i < bruteLength)
{
    int add = incrementBy + ourBrute[i];
    ourBrute[i] = add % charSetLen;
    incrementBy = add / charSetLen;
    i++;
}}

void md5_vfy(unsigned char* data, unsigned int length, unsigned int *a1, unsigned int *b1, unsigned int *c1, unsigned int *d1){
{...*some md5 hashing function*...}}

__kernel void crack(unsigned int numThreads, …
Run Code Online (Sandbox Code Playgroud)

c c++ brute-force opencl

5
推荐指数
1
解决办法
863
查看次数

标签 统计

brute-force ×1

c ×1

c++ ×1

opencl ×1