Skip to content

Commit

Permalink
encrypton - add bind phrase feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 11, 2023
1 parent 2fb7040 commit 85051fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion example_keys/drone.key
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
n2���ņ��a-G��L3/���N��������O=Ȯ:`�j�c :=Bܒ�\s��J7��:�u�
����;��d� =���go1�HF�%���4Ab׷��A� �"<�/ǰ]� �7��r+9(.�+/

4 changes: 2 additions & 2 deletions src/WBTxRx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ WBTxRx::WBTxRx(std::vector<WifiCard> wifi_cards1,Options options1)
}else{
keypair=wb::generate_keypair_deterministic(true);
}
//m_encryptor=std::make_unique<Encryptor>(m_options.encryption_key);
//m_decryptor=std::make_unique<Decryptor>(m_options.encryption_key);
m_encryptor=std::make_unique<wb::Encryptor>(keypair);
m_decryptor=std::make_unique<wb::Decryptor>(keypair);
m_encryptor->makeNewSessionKey(m_tx_sess_key_packet.sessionKeyNonce,m_tx_sess_key_packet.sessionKeyData);
// next session key in delta ms if packets are being fed
m_session_key_next_announce_ts = std::chrono::steady_clock::now();
Expand Down

0 comments on commit 85051fe

Please sign in to comment.