Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions public/usage-examples/utilities/base64_decode-1-example-oop.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using SplashKitSDK;

public class Program
{
public static void Main()
{
string encoded = "SGVsbG8gU3BsYXNoS2l0";

// Decode a Base64 string back to plain text
string decoded = SplashKit.Base64Decode(encoded);

// Print the Base64 input and decoded output
SplashKit.WriteLine("Base64: " + encoded);
SplashKit.WriteLine("Decoded: " + decoded);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using SplashKitSDK;

string encoded = "SGVsbG8gU3BsYXNoS2l0";

// Decode a Base64 string back to plain text
string decoded = SplashKit.Base64Decode(encoded);

// Print the Base64 input and decoded result
SplashKit.WriteLine("Base64: " + encoded);
SplashKit.WriteLine("Decoded: " + decoded);
15 changes: 15 additions & 0 deletions public/usage-examples/utilities/base64_decode-1-example.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "splashkit.h"

int main()
{
string encoded = "SGVsbG8gU3BsYXNoS2l0";

// Decode a Base64 string back to plain text
string decoded = base64_decode(encoded);

// Print the Base64 input and the decoded output
write_line("Base64: " + encoded);
write_line("Decoded: " + decoded);

return 0;
}
10 changes: 10 additions & 0 deletions public/usage-examples/utilities/base64_decode-1-example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from splashkit import *

encoded = "SGVsbG8gU3BsYXNoS2l0"

# Decode a Base64 string back to plain text
decoded = base64_decode(encoded)

# Print the Base64 input and decoded result
write_line("Base64: " + encoded)
write_line("Decoded: " + decoded)
6 changes: 6 additions & 0 deletions public/usage-examples/utilities/base64_decode-1-example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This example demonstrates how to use the base64_decode function in SplashKit.

The program takes a Base64-encoded string (e.g. "SGVsbG8gU3BsYXNoS2l0")
and decodes it back into its original plain text ("Hello SplashKit").

This is useful when converting serialized or encoded data back into a readable format.