5 kyu

Base64 Encoding

2,441 of 5,382joseph.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 Trained17272
Total Skips5850
Total Code Submissions40222
Total Times Completed5382
JavaScript Completions2441
Python Completions1565
Swift Completions140
C# Completions687
TypeScript Completions605
Total Stars440
% of votes with a positive feedback rating81% of 797
Total "Very Satisfied" Votes566
Total "Somewhat Satisfied" Votes154
Total "Not Satisfied" Votes77
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