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

Split 4xxx bytes into 6 QR-Codes #27

Open
pke opened this issue Mar 16, 2021 · 2 comments
Open

Split 4xxx bytes into 6 QR-Codes #27

pke opened this issue Mar 16, 2021 · 2 comments

Comments

@pke
Copy link

pke commented Mar 16, 2021

Could we add a function to split data into exactly n frames if possible?
Maybe its already possible (using the loops argument?) and I just don't see it.

@gre
Copy link
Owner

gre commented Mar 16, 2021

right now, with the "dataSize" parameter, you can approach the number of QR code but it's not going to be exact since there is a "header" in the data.
I don't think it's in scope of this library to guarantee a given number of QR codes, but i'm curious about the usecase and if we can find a solution.

@pke
Copy link
Author

pke commented Mar 16, 2021

The use case is to encode a PKCS#8 into 6 QR codes to print in a PDF to have an offline copy of a private key (password protected of course).
The key is 43xx bytes long.

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