Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation request: Parity bit #927

Open
NilsIrl opened this issue Dec 20, 2019 · 1 comment
Open

Operation request: Parity bit #927

NilsIrl opened this issue Dec 20, 2019 · 1 comment

Comments

@NilsIrl
Copy link

NilsIrl commented Dec 20, 2019

Summary

https://en.wikipedia.org/wiki/Parity_bit

There should be an option to encode and decode and choose odd or even number of 1 bits.

Examples

Decode odd:

10101000 00101001 -> 00101000 00101001

Encode odd:

00101000 00101001 -> 10101000 00101001

Decode even:

00101000 10101001 -> 00101000 00101001

Encode even:

00101000 00101001 -> 00101000 10101001

@NilsIrl
Copy link
Author

NilsIrl commented Dec 22, 2019

Depending on how it is done and if error should be outputted if the input doesn't have parity.

Decode (even || odd) can be implemented as AND({'option':'Binary','string':'01111111'})

j83305 added a commit to j83305/CyberChef that referenced this issue May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants