2

I am unable to generate the hash for the netbeans 8.2 for Ubuntu 16.04 after I write the command:

ravi@Dell:~/Downloads$ sha256 netbeans-8.2-linux.sh 
mlockall: Cannot allocate memory
Warning: couldn't lock memory, are you root?
Enter passphrase: 

Now what is this passphrase?
What should I do now?

1
  • Just enter passphrase (something you must type to generate a hashing. Example: "Donald Trump is a great goofy". After that, look what happens. Maybe is just a warning, not harmful
    – Redbob
    Sep 11, 2017 at 14:31

3 Answers 3

3

I suspect that you should have execute sha256sum which calculate the checksum.

sha256sum netbeans-8.2-linux.sh 

I also found NetBeans 8.2 C / C ++ for Linux Xubuntu 16.04 64/32 which specify:

and check its sha256 (from Terminal: sha256sum path / filename).


See below the difference between sha256 and sha256sum

man sha256sum - compute and check SHA256 message digest
man sha256 - hashalot - read a passphrase and print a hash

2

From man sha256 passphrase is just used to produce the hashing any thing is fine.

DESCRIPTION
       hashalot is a small tool that reads a passphrase from standard input, hashes it using the given hash type, and
       prints the result to standard output.

       Warning: If you do not use the -x option, the hash is printed in binary. This may  wedge  your  terminal  set‐
       tings, or even force you to log out.

       This  is  not  a  general  purpose  hasher, only the first line is used, not even including the final newline.
       Thus, don't be surprised if the output seems to be different from other tools -- you'd have  to  hash  exactly
       the same string.
0

it hashes from std in, so perhaps this would work:

cat netbeans-8.2-linux.sh  |sha256

However, you have another issue there, you must set the the memory allocation, to get rid of the mlockall error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .