(data: &[u8])
| 2 | #[cfg(feature = "base32_decode")] |
| 3 | #[allow(dead_code)] |
| 4 | pub fn decode_payload(data: &[u8]) -> Option<Vec<u8>> { |
| 5 | let raw = std::str::from_utf8(data).ok()?; |
| 6 | base32::decode(base32::Alphabet::Rfc4648 { padding: true }, raw) |
| 7 | } |
| 8 | |
| 9 | #[cfg(feature = "base64_decode")] |
| 10 | #[allow(dead_code)] |