0
b2plane
180d

๐ŸŸ๐Ÿ’ฉThe image i fetch from s3 is of type byte array

I return it to angular as an ArrayBuffer

Which then needs to be somehow converted to an image so i can fucking show it

Then after research i had to convert ArrayBuffer to Blob

And from Blob to URL encoded object which returns a string that now shows the full image in img tag

Somehow, by a sheer of trials and error i have just accidentally made a very secure way of fetching a very sensitive piece of document (verification document with user's personal data on it) and now in browser this is shown as blob:shit-image/random-hash. Not even the file extension. This means nobody can download this image. You fucking cant. Its a Blob motherfucker! Like a Blob Fish. It saves either a .txt when you try to save it (no idea how) and if you try to open the image in new tab it shows gibberish text. This means you can read-only this highly sensitive document image and not manipulate it, not even download it. Perfect. I have just made a very secure software by accident.

(this blob fish looks like my shit)

Comments
  • 1
    I can always screenshot it. But also, if you want to, it's trivially simple to save it.
  • 0
    @msdsk you'll never get the original image metadata so ur screenshot will always be easy to debunk as fake/screenshotted and not the original copy
  • 3
    First time opening an image in notepad?

    Extension != File type
Add Comment