Skip to content

base64_encode and base64_decode #507

@rakeshpai

Description

@rakeshpai

It appears that the ROM already has these functions. A nice clean wrapper would make using it very easy.

In this thread in the forum, cal says that the signature of base64_encode is

extern unsigned char * base64_encode(const unsigned char *src, size_t len, size_t *out_len);

However, using this doesn't seem straightforward, for reasons mentioned in the forum post.

I'm still just getting my feet wet, so I don't have the chops to do this myself, sorry. However, on the surface, it seems like it should be rather easy to do? I'm guessing it could be made to look similar to String sha1(String str) in Hash.h. Maybe it even belongs in Hash.h?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions