Giter Club home page Giter Club logo

Comments (4)

hastebrot avatar hastebrot commented on May 23, 2024 1

Yes, choice between algorithms makes sense.

cksum from coreutils provides some checksums with different algorithms. It also allows to output as hexadecimal string (default), base64-encoded, or raw bytes (only with single files).

❯ eza -1f | xargs cksum -a crc
❯ eza -1f | xargs cksum -a md5
❯ eza -1f | xargs cksum -a md5 --base64

From cksum --help:

DIGEST determines the digest algorithm and default output format:
  sysv      (equivalent to sum -s)
  bsd       (equivalent to sum -r)
  crc       (equivalent to cksum)
  md5       (equivalent to md5sum)
  sha1      (equivalent to sha1sum)
  sha224    (equivalent to sha224sum)
  sha256    (equivalent to sha256sum)
  sha384    (equivalent to sha384sum)
  sha512    (equivalent to sha512sum)
  blake2b   (equivalent to b2sum)
  sm3       (only available through cksum)

from eza.

daviessm avatar daviessm commented on May 23, 2024

I quite like this idea but there would have to be a choice between CRC32, MD5, ...

If it's only enabled by a command-line option then checksum calculation would only happen when the option is passed so there would be no slowdown for regular usage.

from eza.

cfxegbert avatar cfxegbert commented on May 23, 2024

I do not think we would want eza to calculate checksums. It is intentional that it does not read files as it would update the atime of the file. Other utilities already exist to calculate checksums.

from eza.

MartinFillon avatar MartinFillon commented on May 23, 2024

I agree with @cfxegbert the goal of eza is to not read file contents nor touch at file in any ways.

from eza.

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.