Skip to content

Commit

Permalink
disable encryption for breadboard
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Apr 3, 2024
1 parent 1e538a7 commit 3171435
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions noisemeter-device/secret-store.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "board.h"
#include "secret-store.h"

#if defined(BOARD_ESP32_PCB)

#include <esp_hmac.h>
#include <mbedtls/aes.h>

Expand Down Expand Up @@ -49,3 +52,21 @@ String decrypt(String key, String in)

} // namespace Secret

#else // !defined(BOARD_ESP32_PCB)

namespace Secret {

String encrypt([[maybe_unused]] String key, String in)
{
return in;
}

String decrypt([[maybe_unused]] String key, String in)
{
return in;
}

} // namespace Secret

#endif // defined(BOARD_ESP32_PCB)

0 comments on commit 3171435

Please sign in to comment.