In this article we're taking a closer look at the Base64 algorithm and implement an encoder and decoder from scratch using the Rust programming lan...
For further actions, you may consider blocking this person and/or reporting abuse
You're missing
encode
anddecode
. You have a description of them, maybe it is enough to write it myself.Oh, I'm a bit wrong here: The included
encode
anddecode
calls themselves, which is not entirely correct. The version that works is here:I love how this example is self-contained enough that I can actually guess the intent.
The implementation of these functions was described in the chapter "Piecing it together" (third code block). It's pretty much what you wrote here, instead I used the convenience function that assumes you want to encode and decode against the classic alphabet :)
But maybe I'm misinterpreting your comment. In any case, thank you for feedback so far!
Thanks for the reply. I went through it the first time, and could interpret it as a first time reader. This is no longer the case, so I don't know why I wrote that. Sorry.
But I think it is okay as is now.
Do you want me to delete these corrections now that they have been remedied?
No worries! I appreciate the feedback regardless ☺️ Don't worry about the comments, I think that's part of the post and perhaps it encourages folks to point out mistakes I might have made. Thanks👌
The
decode_using_alphabet
needs a;
after the.collect
.Sharp! You are correct! Thank you so much :)
I've also seen that
get_padding_char
is missing.I'm guessing it should be this
Yep, that was the idea! Somehow I missed copying this one too. Thanks again 👌
This repo is probably private. Atleast the link doesn't work.
🙈 You are correct! Totally missed that one. Changed the visibility of the repository, thanks!