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

Generated key pair is in binary format and not useable #13

Open
silvermind opened this issue Jan 22, 2018 · 1 comment
Open

Generated key pair is in binary format and not useable #13

silvermind opened this issue Jan 22, 2018 · 1 comment

Comments

@silvermind
Copy link

Hi Guys,
how can I get the actual value of the keys, required to register with https://gateway.threema.ch,

I just get some Ruby Key Objects using the Threema::E2E::Key.generate_pair command:

#<RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PublicKey:66771670>
or with .to_bytes as array: 
"fw\x16p&=b&\xFBTen\x182\xBA\x89\x99ED\x02/!\xFA\xFF\xA1\xAD\xC8\xFD\xBAA\x83\x14"
@thorsteneckel
Copy link
Collaborator

Hi @silvermind - I updated the README with a proper example. I have to review the code because this should be improved 🤔 Feel free to ask any questions.

@thorsteneckel thorsteneckel changed the title Getting the generated Private Key Generated key pair is in binary format and not useable Jan 23, 2018
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