Giter Club home page Giter Club logo

Comments (9)

skrtdev avatar skrtdev commented on August 26, 2024 1

I think, need a database if this needs to be implemented.

No, it’s not needed, you can use some algorithms

from filesbot.

AhyaH-YHWH avatar AhyaH-YHWH commented on August 26, 2024

If I have bot username, I will generate all links like
https://t.me/FilesBot?start=view_12_tg
https://t.me/FilesBot?start=view_109_tg

and see the files users forwarded to bot

but this way, Random users can only access Files, if they have exact word in link

from filesbot.

code-rgb avatar code-rgb commented on August 26, 2024

@SpEcHiDe time to use uuid :-)

from filesbot.

skrtdev avatar skrtdev commented on August 26, 2024

Uhm, it makes sense

from filesbot.

SpEcHiDe avatar SpEcHiDe commented on August 26, 2024

I think, need a database if this needs to be implemented.

from filesbot.

skrtdev avatar skrtdev commented on August 26, 2024

Wait, it’s not possibile with an algorithm without using a db. Sorry I was wrong.

I’m thinking about it, let’s see if I find something

from filesbot.

SpEcHiDe avatar SpEcHiDe commented on August 26, 2024

it is not impossible, ideally you can use any algorithm which supports 2 way hashing (and returns a hash less than 64 characters), but I think not using a DB is over-engineering the problem..😅

from filesbot.

skrtdev avatar skrtdev commented on August 26, 2024

Yeah but:

  1. 2 way hashing is useless: everyone can access any file
  2. In order to use DB on heroku you have to use Heroku’s own DB, and this prevent the bot to be hosted in other places

Also, if we’ll use a 2 way hashing, I’d like to use my own base26 encoding, that encodes every int in a string composed by only a-z lowercase letters

from filesbot.

SpEcHiDe avatar SpEcHiDe commented on August 26, 2024
  1. I think we can override DATABASE_URL but I am not sure about it.

from filesbot.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.