Skip to content

add mode sm3crypt -m 35100 - #34

Merged
cyclone-github merged 1 commit into
mainfrom
sm3crypt
Aug 18, 2026
Merged

add mode sm3crypt -m 35100#34
cyclone-github merged 1 commit into
mainfrom
sm3crypt

Conversation

@cyclone-github

Copy link
Copy Markdown
Owner

Add sm3crypt (hashcat -m 35100) support.

Implementation follows the upstream libxcrypt v4.5.0 SM3crypt implementation for Unix $sm3$ hashes.

  • SM3 digest using github.com/emmansun/gmsm/sm3
  • 5000 default rounds
  • 16 character crypt-base64 salt
  • libxcrypt compatible P/S byte sequences and mixing rounds
  • libxcrypt compatible 43 character digest encoding

hashgen usage: -m sm3crypt or -m 35100

Example:

$ echo "hashgen" | hashgen -m sm3crypt
$sm3$f7cUOinryhcuinh2$nHJ8D7ub2ah8ilksLL74QpOwxuWvBDqBsgMl0vsjuE6

@cyclone-github cyclone-github self-assigned this Aug 18, 2026
@cyclone-github cyclone-github added the enhancement New feature or request label Aug 18, 2026
@cyclone-github
cyclone-github merged commit 3c02277 into main Aug 18, 2026
4 checks passed
@cyclone-github
cyclone-github deleted the sm3crypt branch August 18, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant