devel/cppcodec: Library to encode/decode base64, base64url, etc.

Header-only C++11 library to encode/decode base64, base64url, base32,
base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus
Crockford's base32.

MIT licensed with consistent, flexible API. Supports raw pointers,
std::string and (templated) character vectors without unnecessary
allocations. Cross-platform with measured decent performance and
without compiler warnings.
This commit is contained in:
Jason W. Bacon
2025-09-05 18:28:56 -05:00
parent 4373d09502
commit 5679cabff6
5 changed files with 57 additions and 0 deletions
+1
View File
@@ -500,6 +500,7 @@
SUBDIR += covtool
SUBDIR += cpan-upload
SUBDIR += cpan-upload-http
SUBDIR += cpp-codec
SUBDIR += cpp-netlib
SUBDIR += cpp-utilities
SUBDIR += cpp2py
+19
View File
@@ -0,0 +1,19 @@
PORTNAME= cppcodec
DISTVERSIONPREFIX= v
DISTVERSION= 0.2
CATEGORIES= devel
MAINTAINER= jwb@FreeBSD.org
COMMENT= Library to encode/decode base64, base64url, base32, base32hex and hex
WWW= https://github.com/tplgy/cppcodec
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= catch>0:devel/catch
USES= cmake localbase
USE_GITHUB= yes
GH_ACCOUNT= tplgy
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1757103347
SHA256 (tplgy-cppcodec-v0.2_GH0.tar.gz) = 0edaea2a9d9709d456aa99a1c3e17812ed130f9ef2b5c2d152c230a5cbc5c482
SIZE (tplgy-cppcodec-v0.2_GH0.tar.gz) = 33984
+8
View File
@@ -0,0 +1,8 @@
Header-only C++11 library to encode/decode base64, base64url, base32,
base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus
Crockford's base32.
MIT licensed with consistent, flexible API. Supports raw pointers,
std::string and (templated) character vectors without unnecessary
allocations. Cross-platform with measured decent performance and
without compiler warnings.
+26
View File
@@ -0,0 +1,26 @@
include/cppcodec/base32_crockford.hpp
include/cppcodec/base32_default_crockford.hpp
include/cppcodec/base32_default_hex.hpp
include/cppcodec/base32_default_rfc4648.hpp
include/cppcodec/base32_hex.hpp
include/cppcodec/base32_rfc4648.hpp
include/cppcodec/base64_default_rfc4648.hpp
include/cppcodec/base64_default_url.hpp
include/cppcodec/base64_default_url_unpadded.hpp
include/cppcodec/base64_rfc4648.hpp
include/cppcodec/base64_url.hpp
include/cppcodec/base64_url_unpadded.hpp
include/cppcodec/data/access.hpp
include/cppcodec/data/raw_result_buffer.hpp
include/cppcodec/detail/base32.hpp
include/cppcodec/detail/base64.hpp
include/cppcodec/detail/codec.hpp
include/cppcodec/detail/config.hpp
include/cppcodec/detail/hex.hpp
include/cppcodec/detail/stream_codec.hpp
include/cppcodec/hex_default_lower.hpp
include/cppcodec/hex_default_upper.hpp
include/cppcodec/hex_lower.hpp
include/cppcodec/hex_upper.hpp
include/cppcodec/parse_error.hpp
share/pkgconfig/cppcodec-1.pc