Skip to content
Snippets Groups Projects

Get number of characters in a SHA1 hash in bash

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Leon Schmidt
    Edited
    do.sh 60 B
    #!/bin/bash
    
    echo -n "BALL" | sha1sum | tr -d '\n -' | wc -c
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment