mirror of
https://github.com/tobiaslocker/base64.git
synced 2024-11-21 03:13:50 +08:00
Create README.md
This commit is contained in:
parent
f030963e77
commit
24fee0893f
17
README.md
Normal file
17
README.md
Normal file
@ -0,0 +1,17 @@
|
||||
# base64
|
||||
A simple approach to convert strings from and to base64.
|
||||
Header only library.
|
||||
|
||||
## Usage
|
||||
|
||||
```cpp
|
||||
#include "base64.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
auto base64= to_base64("Hello, World!");
|
||||
std::cout << base64 << '\n'; // SGVsbG8sIFdvcmxkIQ==
|
||||
auto s = from_base64("SGVsbG8sIFdvcmxkIQ==");
|
||||
std::cout << s << '\n'; // Hello, World!
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user