Code Monkey home page Code Monkey logo

Comments (5)

judahtanthony avatar judahtanthony commented on September 4, 2024

Ah. That makes sense. This is a Node.js library, not a browser library. It has utilities for reading files off the filesystem which we couldn't do in the browser (unless we did some really cool ByteArray drag-n-drop stuff). You can attempt to use Node.js polyfills, but I don't know if that is going to be worthwhile.

from node-aescrypt.

ogadepoju avatar ogadepoju commented on September 4, 2024

Thanks for your response.
But i'm trying to decrypt an ebook within the app and it doesn't use browser as the encrypted file is already downloaded locally into the device data directory, which is suppose to decrypt it locally. Can you advice as to what to do to resolve this issue

Thanks

from node-aescrypt.

ogadepoju avatar ogadepoju commented on September 4, 2024

The major issue now is:
Error: Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Downloads\foyeGab\node_modules\node-aescrypt\build\module\lib'
Error: Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Downloads\foyeGab\src\app\home'

from node-aescrypt.

judahtanthony avatar judahtanthony commented on September 4, 2024

Unfortunately, Ionic (or more precisely Cordova) is not a Node.js runtime. It uses an abstraction to mount client-side code using web views. You can see some Native functionality (for example, file system access) through custom abstractions, but you still don't have all the Node.js libraries like fs and Buffer. You can certainly try to port the logic, but it is pretty tightly coupled to Node.js's buffer and stream system.

from node-aescrypt.

ogadepoju avatar ogadepoju commented on September 4, 2024

Point gotten
thank you

from node-aescrypt.

Related Issues (4)

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.