Git Product home page Git Product logo

Comments (6)

FiloSottile avatar FiloSottile commented on July 19, 2024 1

Yup, we discussed it a few days ago, I will update the spec.

from age.

FiloSottile avatar FiloSottile commented on July 19, 2024 1

Haven't read the Rust code, but what I plan to do is to normalize \r\n to \n before signing. Yes it is malleable, but that's kind of the point of the armored file, if you are 8-bit clean and was non-malleability just use the default format.

from age.

riking avatar riking commented on July 19, 2024

The implementation as linked above seems to have a malleability problem - it produces different bytes on Windows and non-Windows due to line endings, so signing the resulting file is problematic.

from age.

FiloSottile avatar FiloSottile commented on July 19, 2024

This is now documented in the spec. @str4d we changed one small thing while implementing this (sorry!): the end of file is now --- end of file ---, which is not ambiguous for the same reason the end of header isn't, but lets us stick to ---.

This is an armored file encrypted with age-tool.com, version 1
-> X25519 Ui4uE-MN35glMIYAAKXRtN1vqy0Jgpqzylf5FOknOTQ
2trkIGCy9wqlLx_z5eCd_Azjx6s3buQSC6qX5ofKayk
--- HjRoKlzo9ntvaByD52rH7kSIvxjvEXGDeY9bTKU5m5c
imFW2iNkNj2geOEyprUzQraNi1yqd9QGSTCkhztMBScezBZtlEDs_x8X
Ji7g4H3G62UWjTOhjXOUp-nsgfDDMK5H
--- end of file ---

from age.

aaronjanse avatar aaronjanse commented on July 19, 2024

Hey, maybe this is off-topic or too late, but is there a reason the spec hard-wraps at 56 columns instead of allowing the file/data viewer to soft-wrap?

The salt pack format simply uses spaces every 15 characters, which wraps much more nicely on various screen sizes, as shown on their website: https://saltpack.org/

Thanks for your work, and I look forward to using age!

from age.

FiloSottile avatar FiloSottile commented on July 19, 2024

@aaronjanse Hey, I'm trying to move spec discussions to the mailing list. Can you bring it up in this topic? https://groups.google.com/d/topic/age-dev/nNSCbk6OB9w/discussion

from age.

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.