HomePhabricator
Diffusion Comm eb230f41933e

[native][utils-module] Implement base64 encode

Description

[native][utils-module] Implement base64 encode

Summary:
Part of ENG-3408.This one implements base64 encode, which replaces the slow JS implementation.

This implementation is inspired by this article but it is somehow modified (original article impl requires C++20).

Depends on D7485

Test Plan: Called this from JS for various cases and compared it with online converter. Results are equal for each padding value (0, 1, 2).

Reviewers: marcin, kamil, inka

Reviewed By: kamil

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D7486

Details

Provenance
bartekAuthored on Apr 18 2023, 7:52 AM
Reviewer
kamil
Differential Revision
D7486: [native][utils-module] Implement base64 encode
Parents
rCOMM39a21ca69247: [native][utils-module] Implement file r/w operations
Branches
Unknown
Tags
Unknown