Giter Club home page Giter Club logo

Comments (6)

fiatjaf avatar fiatjaf commented on June 11, 2024 2

This is cool, but we need it to be standardized so it works with all other Nostr clients. There are already some clients doing nsec encryption, and would be nice to get everybody to use the same algorithm before we implement anything.

from nos2x.

fiatjaf avatar fiatjaf commented on June 11, 2024 1

I don't like that at all. Having parameters in the encryption thing just forces everybody to implement all possible parameters.

from nos2x.

fiatjaf avatar fiatjaf commented on June 11, 2024 1

I guess yes.

I had forgotten about this issue.

from nos2x.

antonioconselheiro avatar antonioconselheiro commented on June 11, 2024

nice, in private qrcode I'm using an encode that allows me to parameterize which algorithm is being used:

encrypted:[algorithm]?[args];[cypher]

encrypted: identify the string as encrypted encode
algorithm: algorithm name
args: algorithm arguments
cypher: cypher, encrypted content

Example

encrypted:aes?iv=249704f119c3d09e4e0fb3b6a275e519;U2FsdGVkX1/mxOv5WpmRGHXZouip6GOw+P+Jdks6c1Z/uMfwBl7Me+dzJjioF72z9E+bKY/GlcL8HlWnWrs7fTlqVvzmsC3b2dm+JfL2rTH+60dNlk6PJ+41pLRDWA/l

See if this idea can contribute to this standardization

from nos2x.

antonioconselheiro avatar antonioconselheiro commented on June 11, 2024

Nostr can support a single one algorithm with standardized parameters, this encode helps, if the future demands it, to add new algorithms and parameters keeping backwards compatibility.

My suggestion of encrypted encode is inspired by the data url specification (the parameters idea I got from NIP4):

data:[<mediatype>][;base64],<data>
data:text/plain,Hello%20World

As I said before, I am available to implement this feature to your plugin if you wish, following your decisions.

from nos2x.

antonioconselheiro avatar antonioconselheiro commented on June 11, 2024

So, NIP49 implementation is the standardized way to solves this?

from nos2x.

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.