Coder Social home page Coder Social logo

Comments (7)

hasimyerlikaya avatar hasimyerlikaya commented on July 18, 2024 1

I'm sorry for the late reply.

Then I saw that the test is actually working properly. For example, I waited 1 hour for a pdf file and opened successfully. The process takes a long time when opening high-size files.

from encrypt.

leocavalcante avatar leocavalcante commented on July 18, 2024

I have to check where the limitation is. Are you able to make this work using only PointyCastle?

from encrypt.

gsifni avatar gsifni commented on July 18, 2024

I have the exact same issue. Large files encrypted and when i decrypt the application freezes without error messages. I have to force close to restore the app.

from encrypt.

leocavalcante avatar leocavalcante commented on July 18, 2024

@gsifni are you able to use the PointyCastle alone without this encrypt package? This doesn't sounds to be an issue with encrypt it self.

from encrypt.

radvansky-tomas avatar radvansky-tomas commented on July 18, 2024

I have the exact same issue. Large files encrypted and when i decrypt the application freezes without error messages. I have to force close to restore the app.

Same here, no error message and there is no limitation in place.
So its hard to tell why you cannot pass big file, or whats the recommended
approach. I though there will be some sort of "chunked" reading of file
and partial encryption.

from encrypt.

wujek-srujek avatar wujek-srujek commented on July 18, 2024

I also notice this issue. It takes about 40 seconds on the iOS simulator with a 1.3 mb image. I tried to investigate, and here are my findings:

  • It must be the encryption/decryption logic. Reading the file in memory, and writing again, is fast < 300ms.
  • Executing encryption in a separate isolate (as described here: https://flutter.dev/docs/cookbook/networking/background-parsing) is about 3-4 seconds faster, but still very slow. But at least it doesn't cause the application to hang.

I guess anything based o PointyCastle will have the same issue, we would need to look for alternatives. I'm afraid I will have to resort to platform specific code...

from encrypt.

wujek-srujek avatar wujek-srujek commented on July 18, 2024

Actually, I've just found something, take a look here: #126 (comment).

from encrypt.

Related Issues (20)

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.