Questions tagged [string-hashing]
90 questions
0
votes
1 answer
Quick hashing with output length as input lengh
I'm looking for a hashing algorithm that will take an input of 16 chars string, and output a different string of 16 chars. [that can't be converted to the original string]
I've thought of taking a MD5 result and slice the first 16 chars, but i think…

user4939476
- 51
- 1
- 2
0
votes
1 answer
DJB2 hash function editing
I am using DJB2 hash function in my hashing program where I want to store strings. But this hash function returns a very large unsigned int value as return value(hash table index). If my table size is very small (say 13), is there any way to convert…

user4650623
- 17
- 2
- 11
0
votes
3 answers
Is there a hashing function that can be used in finding similar (not necessarily equal) strings?
What I need is a hashing function that operates on fixed data sizes, obviously for non security purposes. It needs to map similar strings to similar or equal hashes, in other words small changes in strings should make no or really small changes to…

mewais
- 1,265
- 3
- 25
- 42
0
votes
2 answers
Password encryption/decryption in Java
I found this piece of code that returns the checksum for a given String.
public static String getChecksum(String md5) {
int counter = 0;
while (counter != 2) {
try {
java.security.MessageDigest md =…

user3254893
- 1,071
- 2
- 13
- 14
0
votes
0 answers
How weblogic hash the console user name and password
I would like to know the way weblogic hash the user name and password of it's console.

Yara Mousa
- 79
- 6
- 15
0
votes
1 answer
Changing letters of a string to obtain maximum score
You are given a string and can change at most Q letters in the string. You are also given a list of substrings (each two characters long), with a corresponding score. Each occurance of the substring within the string adds to your total score. What…

1110101001
- 4,662
- 7
- 26
- 48
0
votes
2 answers
Best hash function to hash xml string in Java
I have to generate the hash of an XML string in Java and afterwards store this information in a database table field (my DBMS is Postgres). Which is the best hash function to use? Thank you in advance

OuterSpace
- 365
- 7
- 22
0
votes
0 answers
Evenly distributing byte array into buckets
I'm trying to implement a minimal perfect hash function, and one of the primary ways to to this is to be able to take the known universe of keys and split them into decently even buckets of a small size (the smaller the better within reason). The…

Daniel Imberman
- 618
- 1
- 5
- 18
0
votes
0 answers
php bcrypt 505 error
I am trying to use a simple hash for users emails and passwords.
But when I run the following php script that is called on an ajax request i fet a 505 error.
email;
$pass…

inoabrian
- 3,762
- 1
- 19
- 27
0
votes
4 answers
Problems with my implementation of a Java Hashmap
After doing research and looking up old posts for a while I realize that when you use a Hashmap or Hashtable in Java where Strings are the keys, the first "round" of hashing is applied to each String objects hashCode (apparently there is a second…

Rob L
- 3,073
- 6
- 31
- 61
0
votes
3 answers
Alternative to Binary Search for searching a million record CSV in C#?
I have a csv file with million records which consists of an ID column,date column etc.. I have u read each record from input file say file1 n put in a List,while inserting i need to check if that particular ID exists already in the List if yes then…

user1942809
- 25
- 7
0
votes
1 answer
Check if a password is hashed in Java Unit test
Starting from a plain-text password and applying a BCrypt algorithm, how can I test if it has been hashed with the aim to perform a Java unit test?

vdenotaris
- 13,297
- 26
- 81
- 132
0
votes
0 answers
Asp.Net Identity PasswordHasher not hashing
The following is the code I am using to effect a password change. I am following the pattern in the Manage.aspx page that comes in the Asp>net web application template for changing the password.
Using that method does NOT hash the password, which is…

dinotom
- 4,990
- 16
- 71
- 139
0
votes
4 answers
How should I implement a string hashing function for these requirements?
Ok, I need a hashing function to meet the following requirements. The idea is to be able to link together directories that are part of the same logical structure but stored in different physical areas of the file system.
I need to implement it in…

flesh
- 23,725
- 24
- 80
- 97
0
votes
2 answers
Replace multiple passwords of type hashed with values (usernames) in one go
Data table: people_t
Columns:
Username - nvarchar(200)
PasswordHash - nvarchar(1000)
Query:
I want to change multiple passwords of type hash to be the usernames. After the command, the passwords should still be hashed but the actual password will…

ParttimeCoder
- 56
- 10