| 32 | namespace crypto { |
| 33 | |
| 34 | Bytes stringToBytes(const std::string& text) { |
| 35 | return Bytes(text.begin(), text.end()); |
| 36 | } |
| 37 | |
| 38 | std::string bytesToString(const Bytes& bytes) { |
| 39 | return std::string(reinterpret_cast<const char*>(bytes.data()), bytes.size()); |
no test coverage detected