Skip to content

Operation request: modulo #2102

@thomasnemer

Description

@thomasnemer

Summary

I was facing a very simple case where I needed to take a short string as input, compute the md5 hash, then turn it into base 10, and finally get the modulo 4. (In my case, would have worked the same with the remainder).

e.g. some-string => 7e99c70638e08303f2de53eee744a371 => 168281185580737909017484253013892965233 => 1

From here, I can't find the last step.

CyberChef is capable of doing modulo, it doesn't seem to expose it as an operation.

This seems to be a simple enough use case so I'm willing to contribute a PR.

Example Input

16

Example Output

(using mod 3 operation):

1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions