04-02-2014
They don't want people to be able to compare hashes like that. Otherwise, if an attacker got to the hashes, they could compare it to a list of known hashes -- which would speed up password bruteforcing tremendously.
In short, they mutate (salt) it a little to prevent people from doing exactly what you tried to do just now.
![Wink Smilie](https://www.unix.com/images/smilies/wink.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We currently take files (via FTP) off of a mainframe and save them as a text file on our server. This is done via a script. The next thing that is done to that text file is it gets zipped (using ZIP). This all works fine, but it doesn't appear that ZIP (the free version) has any way to password... (2 Replies)
Discussion started by: dsimpg1
2 Replies
2. Programming
Hi,
I have usernames and passwords (to connect oracle DB) buried in so many shell scripts.
We want to externalize all usernames and passwords from those shell scripts and encrypt them and keep them in a file.
So far I found two choices,
1) Use some encryption algorithms like (RC5/MD5) to... (5 Replies)
Discussion started by: satguyz
5 Replies
3. Solaris
Hi all,
I have a server in the office that we connect to via telnet. Can anyone explain please how i can encrypt the password so it cannot be picked up in plain text by sniffing software like WireShark, etc.?
I'm not very experienced in Unix, so any ideas or even links would be great.
... (5 Replies)
Discussion started by: de049
5 Replies
4. Solaris
:DHi i am preparing a script to connect to oracle from solaris....
now i want that no one is able to see the password in the script.
is it possible...please help
Regards
Ankurk (3 Replies)
Discussion started by: ankurk
3 Replies
5. UNIX for Dummies Questions & Answers
In unix, i know the password encrypt by using salt
But how does it work? And how windows protect its password?
Thank you for helping in advance (5 Replies)
Discussion started by: cryogen
5 Replies
6. Shell Programming and Scripting
Hi, I have a Java app that looks for some parameters in a .properties file such as username and password. However I don't want to leave the password in a text file and I can't modify the app...
Does anyone have some idea about how to encrypt/hide/etc the password so it's not freely accessible... (1 Reply)
Discussion started by: Tr0cken
1 Replies
7. Shell Programming and Scripting
Please let me know the how to hide Oracle credential in below script:
PP.AIX.ETL:/XYZ/abc/dsclientprod/home/scripts/monthly > cat exec_sql.sh
set +x
# import our environment
#. /xyz/abc/dsclientprod/home/my.env
ScriptOutput=/QIS2FTP/HP_ST_UAT/dsclientprod/home/scripts/ScriptRunInfo.txt... (2 Replies)
Discussion started by: rajubollas
2 Replies
8. Red Hat
How the Password Encryption Works in RHEL 6.4 , And Which Encrytion is used in etc/shadow File , SHA256 , SHA512 or any other ? :confused: (3 Replies)
Discussion started by: babinlonston
3 Replies
9. Shell Programming and Scripting
I am working on a script where we are using sqlplus command to connect to Oracle DB. But the schemaname and password used for sqlplus authentication, have to be hardcoded in the script.
DBconnection=scott/tiger@SID
sqlplus $DBconnection
Here any user who reads the script can read the... (1 Reply)
Discussion started by: max29583
1 Replies
10. Shell Programming and Scripting
Hi Gurus,
I need to encrypt the Db passwords which are stored in a configuration file (.txt) as below:
stage_db_pwd=ABC
this is test line
content_db_pwd=123def
This is test line 2
stg_db_name=xyz
I want to encrypt all the password fields (identified by "pwd"), encrypt them in the same... (3 Replies)
Discussion started by: ashishpanchal85
3 Replies
LEARN ABOUT DEBIAN
simhash
SIMHASH(1) General Commands Manual SIMHASH(1)
NAME
simhash - file similarity hash tool
SYNOPSIS
simhash [ -s nshingles ] [ -f nfeatures ] [ file ]
simhash [ -s nshingles ] [ -f nfeatures ] -w file ...
simhash [ -s nshingles ] [ -f nfeatures ] -m file ...
simhash -c hashfile hashfile
DESCRIPTION
This program is used to compute and compare similarity hashes of files. A similarity hash is a chunk of data that has the property that
some distance metric between files is proportional to some distance metric between the hashes. Typically the similarity hash will be much
smaller than the file itself.
The algorithm used by simhash is Manassas' "shingleprinting" algorithm (see BIBLIOGRAPHY below): take a hash of every m-byte subsequence of
the file, and retain the n of these hashes that are numerically smallest. The size of the intersection of the hash sets of two files gives
a statistically good estimate of the similarity of the files as a whole.
In its default mode, simhash will compute the similarity hash of its file argument (or stdin) and write this hash to its standard output.
When invoked with the -w argument (see below), simhash will compute similarity hashes of all of its file arguments in "batch mode". When
invoked with the -m argument (see below), simhash will compare all the given files using similarity hashes in "match mode". Finally, when
invoked with the -c argument (see below), simhash will report the degree of similarity between two hashes.
OPTIONS
-f feature-count
When computing a similarity hash, retain at most feature-count significant hashes from the target file. The default is 128 fea-
tures. Larger feature counts will give higher resolution in differences between files, will increase the size of the similarity
hash proportionally to the feature count, and will increase similarity hash computation time slightly.
-s shingle-size
When computing a similarity hash, use hashes of samples consisting of shingle-size consecutive bytes drawn from the target file.
The default is 8 bytes, the minimum is 4 bytes. Larger shingle sizes will emphasize the differences between files more and will
slow the similarity hash computation proportionally to the shingle size.
-c hashfile1 hashfile2
Display the distance (normalized to the range 0..1) between the similarity hash stored in hashfile1 and the similarity hash stored
in hashfile2.
-w file ...
Write the similarity hash of each of the file arguments to file.sim.
-m file ...
Compute the similarity hash of each of the file arguments, and output a similarity matrix for those files.
AUTHOR
Bart Massey <bart@cs.pdx.edu>
BUGS
This currently uses CRC32 for the hashing. A Rabin Fingerprint should be offered as a slightly slower but more reliable alternative.
The shingleprinting algorithm works for text files and fairly well for other sequential filetypes, but does not work well for image files.
The latter both are 2D and often undergo odd transformations.
BIBLIOGRAPHY
Mark Manasse, Microsoft Research Silicon Valley. Finding similar things quickly in large collections. http://research.micro-
soft.com/research/sv/PageTurner/similarity.htm
Andrei Z. Broder. On the resemblance and containment of documents. In Compression and Complexity of Sequences (SEQUENCES'97), pages
21-29. IEEE Computer Society, 1998. ftp://ftp.digital.com/pub/DEC/SRC/publications/broder/positano-final-wpnums.pdf
Andrei Z. Broder. Some applications of Rabin's fingerprinting method. Published in R. Capocelli, A. De Santis, U. Vaccaro eds., Sequences
II: Methods in Communications, Security, and Computer Science, Springer-Verlag, 1993. http://athos.rutgers.edu/~muthu/broder.ps
3 January 2007 SIMHASH(1)