5 kyu

Base64 Encoding

2,401 of 5,217joseph.varnado

Description:

Extend the String object (JS) or create a function (Python, C#) that converts the value of the String to and from Base64 using the ASCII (UTF-8 for C#) character set.

Example (input -> output):

'this is a string!!' -> 'dGhpcyBpcyBhIHN0cmluZyEh'

You can learn more about Base64 encoding and decoding here.

Note: This kata uses the non-padding version ("=" is not added to the end).

Binary
Strings
Algorithms

Stats:

CreatedOct 30, 2013
PublishedOct 30, 2013
Warriors Trained16925
Total Skips5829
Total Code Submissions39381
Total Times Completed5217
JavaScript Completions2401
Python Completions1495
Swift Completions134
C# Completions661
TypeScript Completions576
Total Stars434
% of votes with a positive feedback rating81% of 780
Total "Very Satisfied" Votes554
Total "Somewhat Satisfied" Votes150
Total "Not Satisfied" Votes76
Ad
Contributors
  • joseph.varnado Avatar
  • jhoffner Avatar
  • GiacomoSorbi Avatar
  • TellowKrinkle Avatar
  • kazk Avatar
  • vguzev Avatar
  • BerserkerDotNet Avatar
  • Voile Avatar
  • Ching Ching Avatar
  • FArekkusu Avatar
  • Nightingale Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • akar-0 Avatar
Ad