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

Incorrect generation result #37

Open
YooPita opened this issue Nov 22, 2022 · 1 comment
Open

Incorrect generation result #37

YooPita opened this issue Nov 22, 2022 · 1 comment

Comments

@YooPita
Copy link

YooPita commented Nov 22, 2022

I use an online generator and decrypt through an online reader and everything is correct.

But when I use this package, 0 is added to the beginning of the string when decrypting.

To repeat my case, you need to use Code128 and generate the string "765256359354976758112".

Version 1.7.0

@diegodfsd
Copy link

diegodfsd commented Dec 15, 2022

Hi @YooPita some news about this issue?

I think that the source of the problem is in the method that chooses the code128 type. In case your code has only numbers and the length is odd then a zero is added in front of the code. Maybe if the order of evaluation to choose the code type start from A, B, and C the problem will be fixed or maybe you just set explicitly the code type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants