https://github.com/akagi201/urlsafe-b64
The standard 'base64url' with URL and Filename Safe Alphabet described in RFC 4648
https://github.com/akagi201/urlsafe-b64
base64 c url-safe urlsafe-base64
Last synced: about 1 month ago
JSON representation
The standard 'base64url' with URL and Filename Safe Alphabet described in RFC 4648
- Host: GitHub
- URL: https://github.com/akagi201/urlsafe-b64
- Owner: Akagi201
- License: mit
- Created: 2014-12-05T03:11:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T08:52:40.000Z (about 10 years ago)
- Last Synced: 2025-04-04T18:51:59.700Z (2 months ago)
- Topics: base64, c, url-safe, urlsafe-base64
- Language: C
- Size: 242 KB
- Stars: 9
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
urlsafe_b64
===========[](https://travis-ci.org/Akagi201/urlsafe-b64)
[](https://www.biicode.com/Akagi201/urlsafe-b64)
The standard 'base64url' with URL and Filename Safe Alphabet described in RFC 4648
## API
```
#include "b64.h"int b64_encode(const uint8_t *in, size_t ilen, char *out, size_t *olen);
int b64_decode(const char *in, size_t ilen, uint8_t *out, size_t *olen);
int urlsafe_b64_encode(const uint8_t *in, size_t ilen, char *out, size_t *olen);
int urlsafe_b64_decode(const char *in, size_t ilen, uint8_t *out, size_t *olen);
```