Skip to content

Instantly share code, notes, and snippets.

@binki
Last active June 20, 2024 18:29
Show Gist options
  • Save binki/31e03d81490ae704c6887c35357fd393 to your computer and use it in GitHub Desktop.
Save binki/31e03d81490ae704c6887c35357fd393 to your computer and use it in GitHub Desktop.
Doki Doki Literature Club Base64 Natsuki Message/Poem Starting With T3B
SSBjYW4gZmVlbCB0aGUgdGVuZGVybmVz
cyBvZiBoZXIgc2tpbiB0aHJvdWdoIHRo
ZSBrbmlmZSwgYXMgaWYgaXQgd2VyZSBh
biBleHRlbnNpb24gb2YgbXkgc2Vuc2Ug
b2YgdG91Y2guIE15IGJvZHkgbmVhcmx5
IGNvbnZ1bHNlcy4gVGhlcmUncyBzb21l
dGhpbmcgaW5jcmVkaWJseSBmYWludCwg
ZGVlcCBkb3duLCB0aGF0IHNjcmVhbXMg
dG8gcmVzaXN0IHRoaXMgdW5jb250cm9s
bGFibGUgcGxlYXN1cmUuIEJ1dCBJIGNh
biBhbHJlYWR5IHRlbGwgdGhhdCBJJ20g
YmVpbmcgcHVzaGVkIG92ZXIgdGhlIGVk
Z2UuIEkgY2FuJ3QuLi5JIGNhbid0IHN0
b3AgbXlzZWxmLg==

I can feel the tenderness of her skin through the knife, as if it were an extension of my sense of touch. My body nearly convulses. There's something incredibly faint, deep down, that screams to resist this uncontrollable pleasure. But I can already tell that I'm being pushed over the edge. I can't...I can't stop myself.

T3BlbiBZb3VyIFRoaXJkIEV5ZQ==

Open Your Third Eye

@ZhanZiyuan
Copy link

ZhanZiyuan commented Jun 14, 2024

Hello. I found this gist by searching "DDLC base64 picture" on Google.
I love Natsuki too. And I created a repository that deals with Base64 encoding/decoding, and is also somewhat related to DDLC: PixelPuzzle. ❤️

#!/usr/bin/env python
# -*- coding:utf-8 -*-

from base64 import b64decode, b64encode


def encode_base64(object_to_encode: str,
                  encoded_text: str) -> None:
    """
    Encode the input as a Base64 string.
    """
    with open(object_to_encode, "rb") as file_object_read:
        encoded_string = b64encode(file_object_read.read()).decode("utf-8")
        with open(encoded_text, "w", encoding="utf-8") as file_object_written:
            file_object_written.write(encoded_string)


def decode_base64(text_to_decode: str,
                  decoded_object: str) -> None:
    """
    Decode the Base64 string.
    """
    with open(text_to_decode, "r", encoding="utf-8") as file_object_read:
        decoded_output = b64decode(file_object_read.read())
        with open(decoded_object, "wb") as file_object_written:
            file_object_written.write(decoded_output)


if __name__ == "__main__":

    input_text_path = "C:/Users/user/Downloads/poem.txt"
    output_text_path = "C:/Users/user/Downloads/translated.txt"

    decode_base64(
        input_text_path,
        output_text_path
    )

@binki
Copy link
Author

binki commented Jun 15, 2024

@ZhanZiyuan

Hello. I found this gist by searching "DDLC base64 picture" on Google. I love Natsuki too.

Hehe. It has been so long since I played this game. I cannot remember which choices lead to this scene.

And I created a repository that deals with Base64 encoding/decoding, and is also somewhat related to DDLC: PixelPuzzle. ❤️

Encoding/decoding base64 is a common task. It is built into most programming frameworks. There are even specific tools for it. I believe I used openssl enc like this:

openssl enc -d -base64 < body.b64 > body.md

I might have also just used base64-decode-region in my favorite editor.

What saddens me is that most people will go find a blog post where someone posted the decoded version after googling something like “decrypt doki doki literature club messages” instead of decoding it themselves. Or that they end up using an ad-ridden website if they know to instead google “free base64 decoder”. After recognizing that the text matches the characteristics of base64 encoding, I took pride in using the appropriate tools to decode the text.

@JuMaEn16
Copy link

Well thanks i am doing impreesssionn and i stumpletz acposs le letter thanxz fur la informatia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment