[GH-ISSUE #350] create coding-style.txt #90

Closed
opened 2026-10-14 02:52:08 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @kholia on GitHub (Jul 9, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/350

  • create coding-style.txt
  • look into commit hooks
Originally created by @kholia on GitHub (Jul 9, 2013). Original GitHub issue: https://github.com/openwall/john/issues/350 - create coding-style.txt - look into commit hooks
bsakaguchi 2026-10-14 02:52:08 +07:00
Author
Owner

@sftp commented on GitHub (Jul 9, 2013):

"[john-dev] coding styles for c/c++? indenter? emacs settings?" http://www.openwall.com/lists/john-dev/2011/07/14/9

<!-- gh-comment-id:20698871 --> @sftp commented on GitHub (Jul 9, 2013): "[john-dev] coding styles for c/c++? indenter? emacs settings?" http://www.openwall.com/lists/john-dev/2011/07/14/9
Author
Owner

@magnumripper commented on GitHub (Jul 9, 2013):

We have discussed pre-commit hooks - they are not supported by GitHub. We could supply a recommended pre-commit hook that people can use locally but all I found had severe problems. And that's because writing one that is foolproof is damn near impossible (unless you use one that just rejects and does not try to fix things).

I recommend setting up emacs/vim/whatever for doing the job instead.

<!-- gh-comment-id:20709649 --> @magnumripper commented on GitHub (Jul 9, 2013): We have discussed pre-commit hooks - they are not supported by GitHub. We could supply a recommended pre-commit hook that people can use locally but all I found had _severe_ problems. And that's because writing one that is foolproof is damn near impossible (unless you use one that just rejects and does not try to fix things). I recommend setting up emacs/vim/whatever for doing the job instead.
Author
Owner

@kholia commented on GitHub (Nov 20, 2014):

@magnumripper so should we close this ticket?

<!-- gh-comment-id:63804989 --> @kholia commented on GitHub (Nov 20, 2014): @magnumripper so should we close this ticket?
Author
Owner

@jfoug commented on GitHub (Nov 20, 2014):

One thing that may be nice here, is some coding recommendations, or even an FAQ on JtR coding.

Things like

  • what to validate in valid.
  • when to use split, prepare
  • when to use salt/binary hash and why
  • BE / LE issues
  • available common code (pbkdf2 headers, common, base64 and base64_conv)
  • the jtr crypt code (md4/5, sha-X, etc)
  • jtr portability headers jumbo.h, stdint.h stdbool.h, etc (md5.h, sha.h, sha2.h probably go here also)
  • SIMD primer
  • GPU primer

I am sure there are MANY more that would make up that list. But just today, I was asking about the nuances of split vs prepare. @magnumripper did a great reply on it, but will that information slowly evaporate with time ... ?

<!-- gh-comment-id:63809966 --> @jfoug commented on GitHub (Nov 20, 2014): One thing that may be nice here, is some coding recommendations, or even an FAQ on JtR coding. Things like - what to validate in valid. - when to use split, prepare - when to use salt/binary hash and why - BE / LE issues - available common code (pbkdf2 headers, common, base64 and base64_conv) - the jtr crypt code (md4/5, sha-X, etc) - jtr portability headers jumbo.h, stdint.h stdbool.h, etc (md5.h, sha.h, sha2.h probably go here also) - SIMD primer - GPU primer I am sure there are MANY more that would make up that list. But just today, I was asking about the nuances of split vs prepare. @magnumripper did a great reply on it, but will that information slowly evaporate with time ... ?
Author
Owner

@magnumripper commented on GitHub (Nov 20, 2014):

We should probably use Openwall's wiki to sum up things like that. Maybe I can enable the wiki for this repo and just add links to the Openwall wiki. We could also do it the other way round...

A separate chapter could be a Git primer, including how we want stuff committed (pull request, ML), and licensed (link to existing page) and so on.

<!-- gh-comment-id:63891860 --> @magnumripper commented on GitHub (Nov 20, 2014): We should probably use Openwall's wiki to sum up things like that. Maybe I can enable the wiki for this repo and just add links to the Openwall wiki. We could also do it the other way round... A separate chapter could be a Git primer, including how we want stuff committed (pull request, ML), and licensed (link to existing page) and so on.
Author
Owner

@kholia commented on GitHub (Nov 22, 2014):

👍 from me.

<!-- gh-comment-id:64099378 --> @kholia commented on GitHub (Nov 22, 2014): :+1: from me.
Author
Owner

@magnumripper commented on GitHub (Dec 18, 2014):

I enabled the wiki for this repo. It currently only holds a list of predefined OpenCL macros. The nice thing about this wiki is it uses Markdown which is very intuitive (as opposed to the awful mark-up language OpenWall's wiki uses)

The wiki is only writable by collaborators (but readable by anyone)

<!-- gh-comment-id:67430330 --> @magnumripper commented on GitHub (Dec 18, 2014): I enabled the wiki for this repo. It currently only holds a list of predefined OpenCL macros. The nice thing about this wiki is it uses Markdown which is very intuitive (as opposed to the awful mark-up language OpenWall's wiki uses) The wiki is only writable by collaborators (but readable by anyone)
Author
Owner

@magnumripper commented on GitHub (Jul 21, 2015):

@loverszhaokai I saw this issue when looking over old ones. Perhaps some tidbits you can use here?

<!-- gh-comment-id:123510041 --> @magnumripper commented on GitHub (Jul 21, 2015): @loverszhaokai I saw this issue when looking over old ones. Perhaps some tidbits you can use here?
Author
Owner

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

Hmm lots of things mentioned here that should be in devel docs. Reopening.

<!-- gh-comment-id:125479863 --> @magnumripper commented on GitHub (Jul 28, 2015): Hmm lots of things mentioned here that should be in devel docs. Reopening.
Author
Owner

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

Closing again, but referring that other issue here

<!-- gh-comment-id:137813735 --> @magnumripper commented on GitHub (Sep 4, 2015): Closing again, but referring that other issue here
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#90
No description provided.