@untymage That’s not how encryption works. Encryption is based on algorithms, and algorithms tend to generate cipher text (encrypted values) of a certain length.
Use something more appropriate if you want to use it as a referral ID.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm not familiar in hash/encryption world, So i wanna know if there is a way to reduce number of laravel encryption string ? this is so long...
eyJpdiI6IlhaZVpoVTBqTVNaRkNnMytNWTdwR3c9PSIsInZhbHVlIjoiL1Nmam1wUmFyUnVBQXNTTlU1OEp1TTJNY2c5Z1Yw5QlRteHpZbXlDREdIdz0iLCJtYWMiOiI0YTVmMzRiYjZjY2I5NDVjMTA5MWZhYmFhZGZmYTMwYTFmZWM4NDZlNzg0NDU4MWYxZjdhZTY0OTUwNjhmMTc2In0
As i want to pass it for referral query string i wanna something user friendlier and shorter,
i tried base64_encode() on the laravel enctryption string in order to produce fewer character but it also generate long string, Any idea ?
Please or to participate in this conversation.