Skip to content

Commit a4a00a0

Browse files
Add base32.h
1 parent f58d9d8 commit a4a00a0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

base32.h

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Base32 encoding implementation
2+
//
3+
4+
#pragma once
5+
6+
std::string base32_encode(const std::string &data);
7+
std::string base32_decode(const std::string &encoded);
8+
9+
// Helper - converts "W2UETLWDY3A4PCONY3GK" to "W2UET-LWDY3-A4PCO-NY3GK"
10+
std::string GroupStringByHyphens(const std::string &s, unsigned int symbols_in_group);

0 commit comments

Comments
 (0)