Code Monkey home page Code Monkey logo

Comments (3)

gtmtech avatar gtmtech commented on July 17, 2024

Its a good idea - my only comments would be:

  1. it might be more readable to have the encoding type and the hash in memory, and just use counters - e.g. DEC(1):[content]! and DEC(2):[content]! - and the eyaml tool in memory has already stored the hash of the decrypted content of each block to comprare with post editing, and the encryption type?
  2. alternatively you could use DEC::4b2a562f[ ]!

Both cases wouldnt allow the user to change the encryption type of a single block though

from hiera-eyaml.

sihil avatar sihil commented on July 17, 2024

That's an interesting idea that hadn't occured to me. You are right though, it wouldn't allow for the encryption mode to be changed and it might make it harder for users to create new encrypted values in an existing file.

I'm swaying towards DEC(#{index})::#{method}[#{content}]!

I started to look at this last night. It does mean completely rewriting the edit action and no longer reusing the decrypt and encrypt actions (I'd try and extract out the common elements).

from hiera-eyaml.

sihil avatar sihil commented on July 17, 2024

Closing this issue as this is now out of the door with 1.3.6

from hiera-eyaml.

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.