Giter Site home page Giter Site logo

Comments (4)

RomeroYang avatar RomeroYang commented on July 30, 2024

Polkawallet encrypted and stored users‘ mnemonic locally with the password. To encrypt, we use a dart package which requires a 32 digits length hex string as a private key. Now we convert the password string to a 32 hex string like this: https://github.com/polkawallet-io/sdk/blob/d43e7d5ad98ac88c8f3e77d8e246f5d9ba1c9ccd/lib/utils/index.dart#L6.

That means, if the password string length is more than 15, the tail will be dropped for encrypting. password A 000000000000000(15 digits), password B 000000000000000b(16 digits), password C 000000000000000cde(18 digits) will be converted to a same private key of password A.

We may update the code and fix this issue in the future, but for now, a password more than 15 digits will not bring you more safety than a 15 digits one.

from app.

RomeroYang avatar RomeroYang commented on July 30, 2024

But I think we can increase the input limit, how many do you think is suitable for common users? 24 may be better?

from app.

Exxibition avatar Exxibition commented on July 30, 2024

I asked the user who originally asked (Guy works in security and kind of just wants to be able to haha) thinks 28 to 32 should be enough.

If you can make this work that'd be amazing. 🤗

from app.

RomeroYang avatar RomeroYang commented on July 30, 2024

I asked the user who originally asked (Guy works in security and kind of just wants to be able to haha) thinks 28 to 32 should be enough.

If you can make this work that'd be amazing. 🤗

we will make it 32.

from app.

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.