We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
This is for Android using com.github.gerardsoleca:robosodium:1.0.0:
com.github.gerardsoleca:robosodium:1.0.0
// Alice sends peering request. KeyPair aliceKeyPair = new KeyPair(); byte[] aliceSk = aliceKeyPair.getPrivateKey().toBytes(); byte[] alicePk = aliceKeyPair.getPublicKey().toBytes(); // Bob responds with peering offer. String bobCjdnsSk = "yourCjdnsPrivateKey"; String bobOffer = "credentials"; String nonce = "121212121212121212121212"; // TODO Figure out how to generate KeyPair bobKeyPair = new KeyPair(bobCjdnsSk, Encoder.HEX); byte[] bobSk = bobKeyPair.getPrivateKey().toBytes(); byte[] bobPk = bobKeyPair.getPublicKey().toBytes(); Box bobBox = new Box(alicePk, bobSk); byte[] encryptedBundle = bobBox.encrypt(nonce.getBytes(), bobOffer.getBytes()); Log.d(LOG_TAG, "Encrypted: " + new String(encryptedBundle)); // Alice verifies offer. Box aliceBox = new Box(bobPk, aliceSk); byte[] decryptedBundle = aliceBox.decrypt(nonce.getBytes(), encryptedBundle); Log.d(LOG_TAG, "Decrypted: " + new String(decryptedBundle));
@amardeshbd The wrbt protocol will need some altering now that the signing is done as part of the Box encryption process.
@PeterChu2 You can use the cjdns private key to make a Box for signing, just need to specify the HEX encoding. See above.
Sorry, something went wrong.
/ip4/1.2.3.4/udp/54321/cjdns/thepublickey.k/pwd/thepassword /ip4/1.2.3.4/udp/54321/cjdns/thepublickey.k/pwd/thepassword/login/thelogin
benhylau
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: