Login
You're viewing the cuties.social public feed.

Replies

  • Oct 25, 2026, 9:47 AM

    This shitpost took way too much effort...

    💬 0🔄 0⭐ 16
  • Oct 25, 2026, 10:26 AM

    @Error Nice :)
    If I wasn't so hyperfixated on something else right now, I would rewrite-it-in-rust™ ( already did so with kittenmoji (crates.io/crates/kittenmoji).

    Though if you really want to analyse your data for radioactivity, you probably also have to take isotopes into account :)

    💬 0🔄 1⭐ 4
  • Oct 25, 2026, 11:12 AM

    @Error

    >>> len(ALPHABET)
    63

    But BASF64 requires a 64 element long alphabet.

    >>> basf64_encode_group(b'\xff\xff\xff')
    Traceback (most recent call last):
    […]
    File "<python-input-2>", line 35, in basf64_encode_group
    encoded += ALPHABET[sextet]
    ~~~~~~~~^^^^^^^^
    IndexError: list index out of range

    💬 1🔄 1⭐ 4
  • 💬 0🔄 0⭐ 3
  • 💬 0🔄 0⭐ 1
  • 💬 0🔄 0⭐ 4
  • Oct 26, 2026, 12:41 PM

    @Error Euh, I know this is a shit post but I encountered some issues.

    Decoding an empty string crashes the code.
    Decoding a string without the expected padding crashes the code.
    Decoding starts each decoded triplet with a null byte. So "hello\n" encoded and decoded gives "\0hel\0lo\n"

    💬 0🔄 0⭐ 0
  • Oct 26, 2026, 4:47 PM

    @Kroppeb it's just a shitpost, I didn't do much testing; feel free to send a PR, but be aware that I don't intend to really maintain this

    💬 0🔄 0⭐ 0
  • Oct 26, 2026, 1:40 PM

    @Error Gave me flashbacks of buying expensive chrome tapes and floppy discs to ... ahem ... make recordings on.

    💬 0🔄 0⭐ 0