Jifty:...base64(3pm)

πŸ“¦
version 0.78 Β· 2 versions
  • 0.78 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.78 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Jifty::DBI::Filter::base64 ✨

okay bestie, welcome to the base64 filter from the Jifty::DBI fam πŸ’– (it lives in the User Contributed Perl Documentation section, iykyk)


πŸŽ€ NAME πŸŽ€

Jifty::DBI::Filter::base64 β€” it encodes data as base64, periodt πŸ’…


🌸 DESCRIPTION 🌸

so the whole vibe of this filter? it lets you store arbitrary data in a column of type <code>text</code>. that's it, that's the serve 🫢 no cap.


πŸ¦‹ encode πŸ¦‹

if the value is defined, it gets encoded using <code>encode_base64</code> in <code>MIME::Base64</code> β€” but <em>only</em> after it's been passed through <code>encode_utf8</code> in <code>Encode</code> first. two-step glow-up, iconic ✨

and if the value is not defined? it literally does <strong>nothing</strong>. doesn't touch it. minding its own business πŸ’€


🧚 decode 🧚

if the value is defined, it decodes it using <code>decode_base64</code> in <code>MIME::Base64</code>. otherwise, <strong>do nothing</strong> β€” it's giving chill, it's giving unbothered 😌


🌈 SEE ALSO 🌈

  • Jifty::DBI::Filter β€” the parent filter energy πŸ‘‘
  • MIME::Base64 β€” where all the actual base64 magic happens πŸ“

lowkey reminder: this page is perl v5.34.0, dated 2022-06-15, and it's part of the Jifty:...base64(3pm) manual. mwah, go encode something cute πŸ’–πŸ’…βœ¨
πŸ“¦ where this page comes from