[GH-ISSUE #1475] We lack developer documentation #951

Open
opened 2026-10-14 03:29:40 +07:00 by bsakaguchi · 16 comments
Owner

Originally created by @frank-dittrich on GitHub (Jun 28, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1475

Originally assigned to: @frank-dittrich on GitHub.

What we need to document:

  • How to implement a new format.
  • Which format to pick for a template
  • How to advance from a simple implementation to one with SIMD support
  • When and how to implement thin formats

(And I am sure lots of other stuff)

Originally created by @frank-dittrich on GitHub (Jun 28, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1475 Originally assigned to: @frank-dittrich on GitHub. What we need to document: - How to implement a new format. - Which format to pick for a template - How to advance from a simple implementation to one with SIMD support - When and how to implement thin formats (And I am sure lots of other stuff)
Author
Owner

@magnumripper commented on GitHub (Jun 28, 2015):

  • How the plugin "system" works (and when to use / not use it)
  • How to update the autoconf stuff
  • split() vs prepare()
<!-- gh-comment-id:116355308 --> @magnumripper commented on GitHub (Jun 28, 2015): - How the plugin "system" works (and when to use / not use it) - How to update the autoconf stuff - `split()` vs `prepare()`
Author
Owner

@magnumripper commented on GitHub (Jun 28, 2015):

Openwall's wiki is almost dead and that might be partly because it's horrible to use: It's the worst wiki [the software] I've encountered as a writer.

On the other hand, this Github wiki is, in my opinion, wonderful. It's simple and intuitive. I have some pages here mostly for my own notes.

<!-- gh-comment-id:116355951 --> @magnumripper commented on GitHub (Jun 28, 2015): [Openwall's wiki](http://openwall.info/wiki/john) is almost dead and that might be partly because it's horrible to use: It's the worst wiki [the software] I've encountered as a writer. On the other hand, this Github wiki is, in my opinion, wonderful. It's simple and intuitive. I have [some pages here](https://github.com/magnumripper/JohnTheRipper/wiki) mostly for my own notes.
Author
Owner

@jfoug commented on GitHub (Jul 22, 2015):

https://github.com/magnumripper/JohnTheRipper/wiki/Developer-Help-Documentation

I have added some place holder pages, listing all items from this post. I really would like to be able to control what shows up in that 'Pages' sidebar. It will get HEAVILY cluttered and unusable.

<!-- gh-comment-id:123799972 --> @jfoug commented on GitHub (Jul 22, 2015): https://github.com/magnumripper/JohnTheRipper/wiki/Developer-Help-Documentation I have added some place holder pages, listing all items from this post. I really would like to be able to control what shows up in that 'Pages' sidebar. It will get HEAVILY cluttered and unusable.
Author
Owner

@magnumripper commented on GitHub (Aug 19, 2015):

The place holders are annoying. Please either drop them for now, or fill them in.

<!-- gh-comment-id:132482998 --> @magnumripper commented on GitHub (Aug 19, 2015): The place holders are annoying. Please either drop them for now, or fill them in.
Author
Owner

@frank-dittrich commented on GitHub (Aug 21, 2015):

Another question:
How to decide whether or not an OpenCL format should be OMP or not.
E.g., rar-opencl is OMP, some other formats are OMP as well, but (at least for my Haswell with beignet) I don't really know why.

<!-- gh-comment-id:133492326 --> @frank-dittrich commented on GitHub (Aug 21, 2015): Another question: How to decide whether or not an OpenCL format should be OMP or not. E.g., rar-opencl is OMP, some other formats are OMP as well, but (at least for my Haswell with beignet) I don't really know why.
Author
Owner

@magnumripper commented on GitHub (Aug 23, 2015):

It's pretty obvious: For example, the CUDA version of WPAPSK does significant post-processing on CPU, so should (and does AFAIK) use OpenMP for that. The OpenCL version does it all on GPU, so there's simply nowhere you could put an OpenMP pragma.

<!-- gh-comment-id:133867716 --> @magnumripper commented on GitHub (Aug 23, 2015): It's pretty obvious: For example, the CUDA version of WPAPSK does significant post-processing on CPU, so should (and does AFAIK) use OpenMP for that. The OpenCL version does it all on GPU, so there's simply nowhere you could put an OpenMP pragma.
Author
Owner

@frank-dittrich commented on GitHub (Aug 23, 2015):

OK, then I might need a real GPU instead of Intel's Haswell to see the benefit of using OpenMP for rar-opencl. For me. there's no difference running a non-OMP version, and the CPU is still mostly idle.

<!-- gh-comment-id:133880707 --> @frank-dittrich commented on GitHub (Aug 23, 2015): OK, then I might need a real GPU instead of Intel's Haswell to see the benefit of using OpenMP for rar-opencl. For me. there's no difference running a non-OMP version, and the CPU is still mostly idle.
Author
Owner

@magnumripper commented on GitHub (Aug 23, 2015):

You got it backwards. Again, the OpenCL version of WPA does not and can not utilize OpenMP, because all work is done on GPU.

<!-- gh-comment-id:133898217 --> @magnumripper commented on GitHub (Aug 23, 2015): You got it backwards. Again, the OpenCL version of WPA does not and can not utilize OpenMP, because all work is done on GPU.
Author
Owner

@frank-dittrich commented on GitHub (Aug 23, 2015):

NO, I didn't get it backwards. I didn't mention WPA at all.
I just discussed rar-opencl. May be here the CPU has work to do, but at least with my Haswell, there's so little work to do for the CPU that the CPU is idle most of the time, even in a --disable-openmp build.

<!-- gh-comment-id:133909963 --> @frank-dittrich commented on GitHub (Aug 23, 2015): NO, I didn't get it backwards. I didn't mention WPA at all. I just discussed rar-opencl. May be here the CPU has work to do, but at least with my Haswell, there's so little work to do for the CPU that the CPU is idle most of the time, even in a --disable-openmp build.
Author
Owner

@magnumripper commented on GitHub (Aug 23, 2015):

Oh, my bad. The thing with RAR is we have very good early rejection nowadays. Whenever that code fails to reject early, we need to do, worst case, an AES decryption of a whole file in the archive. That file is potentially huge.

<!-- gh-comment-id:133928177 --> @magnumripper commented on GitHub (Aug 23, 2015): Oh, my bad. The thing with RAR is we have very good early rejection nowadays. Whenever that code fails to reject early, we need to do, worst case, an AES decryption of a whole file in the archive. That file is potentially huge.
Author
Owner

@frank-dittrich commented on GitHub (Aug 23, 2015):

Can that AES decryption of a whole file benefit from OpenCL?
I just ask because I intend to run rar-opencl in parallel ro rar (where I would use default OMP_NUM_THREADS on CPU), and I am afraid that enabling OpenCL for GPU might hurt perfrmance rather than help.

<!-- gh-comment-id:133929528 --> @frank-dittrich commented on GitHub (Aug 23, 2015): Can that AES decryption of a whole file benefit from OpenCL? I just ask because I intend to run rar-opencl in parallel ro rar (where I would use default OMP_NUM_THREADS on CPU), and I am afraid that enabling OpenCL for GPU might hurt perfrmance rather than help.
Author
Owner

@frank-dittrich commented on GitHub (Aug 23, 2015):

The --test benchmarks just indicate that I can combine --format=rar and --format=rar-opencl, and get more or less the same speeds as when I run --format=rar and --format=rar-opencl individually.

<!-- gh-comment-id:133930137 --> @frank-dittrich commented on GitHub (Aug 23, 2015): The --test benchmarks just indicate that I can combine --format=rar and --format=rar-opencl, and get more or less the same speeds as when I run --format=rar and --format=rar-opencl individually.
Author
Owner

@magnumripper commented on GitHub (Aug 23, 2015):

AES can be done on GPU but I don't think it's worth it. But I'm pretty sure it will be worthwhile to run CPU and GPU in parallel, because of the mentioned early rejection stuff.

<!-- gh-comment-id:133930350 --> @magnumripper commented on GitHub (Aug 23, 2015): AES can be done on GPU but I don't think it's worth it. But I'm pretty sure it will be worthwhile to run CPU and GPU in parallel, because of the mentioned early rejection stuff.
Author
Owner

@magnumripper commented on GitHub (Aug 27, 2015):

We should also document the use of error() and pexit(). And why to use them (there are very good reasons) instead of exit() when possible.

<!-- gh-comment-id:135564184 --> @magnumripper commented on GitHub (Aug 27, 2015): We should also document the use of `error()` and `pexit()`. And why to use them (there are very good reasons) instead of `exit()` when possible.
Author
Owner

@magnumripper commented on GitHub (Sep 4, 2015):

Some stuff in #350 too.

<!-- gh-comment-id:137813802 --> @magnumripper commented on GitHub (Sep 4, 2015): Some stuff in #350 too.
Author
Owner

@kholia commented on GitHub (Nov 11, 2017):

We also have a doc/HACKING.md file now. I am looking for suggestions about topics which could be added to this file.

<!-- gh-comment-id:343666784 --> @kholia commented on GitHub (Nov 11, 2017): We also have a `doc/HACKING.md` file now. I am looking for suggestions about topics which could be added to this file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#951
No description provided.