Git Product home page Git Product logo

Comments (5)

squirrelito avatar squirrelito commented on July 17, 2024

OK, just for the records here that if I do encodeURIComponent before encryption with private key and decodeURIComponent with public key solves the problem (having in mind the size of the selected key and length of the message).
So I am not sure if it is intended for the library to support or not utf8 strings but it is working just fine with smaller utf8 strings which made think it handles all cases.

from jsencrypt.

zoloft avatar zoloft commented on July 17, 2024

MM honestly feels strange, I'll have to dig into it but if it is a real problem it is for sure inside the core library and could be really difficult to find out. Anyway thanks for getting us know it

from jsencrypt.

squirrelito avatar squirrelito commented on July 17, 2024

As I said it is working out of the box for other cyrillic strings that are close as size to the example above. I have some assumptions about the cause but haven't time to really get into it.
As a side note here because encoding and decoding utf8 strings gets really performance expensive as the size the string grows - were you able to use this library in a web worker? I gave it a try for a few hours but I hit the wood on this.

from jsencrypt.

zoloft avatar zoloft commented on July 17, 2024

Since you said that using d/encodeURIcomponent make the strings pass I doubt you are hittimg the size limit for your key size so it should be something subtle... As per the web worker I'm currently working on it and made it work but since i'm very busy at moment I'm making basically no progress at all. Anyway if you look at the develop branch the webworker code is already been published and commented so you should be able to make it working without too much problem. Should you need any assistance I'm here just remember that I can reply only on early morning and late evening (now is early morning for me)

Antonio

Il giorno 16/set/2014, alle ore 22:47, squirrelito [email protected] ha scritto:

As I said it is working out of the box for other cyrillic strings that are close as size to the example above. I have some assumptions about the cause but haven't time to really get into it.
As a side note here because encoding and decoding utf8 strings gets really performance expensive as the size the string grows - were you able to use this library in a web worker? I gave it a try for a few hours but I hit the wood on this.


Reply to this email directly or view it on GitHub.

from jsencrypt.

squirrelito avatar squirrelito commented on July 17, 2024

I will give a try the web workers suggestions, 10x. Regarding the size limit - when hitting it I noticed that and exceptions is thrown but with the example string above it is not the case. I have tried with the biggest key at the demo page mentioned above.

from jsencrypt.

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.