please delete
Last edited:
2 questions,
1. when ever you (lets say) blacklist someone, will the color of the player's rank show like is there a placeholder for it (%color%)
2. what intelij theme is that
2 questions,
1. when ever you (lets say) blacklist someone, will the color of the player's rank show like is there a placeholder for it (%color%)
2. what intelij theme is that[DOUBLEPOST=1580435844][/DOUBLEPOST] not home rn but from what I remember it's one dark theme
and also glws
Storing IPs is not recommended. You should hash the IPs before storing incase of a rouge staff member or data breach.
Hash + Salt + Pepper, prevents you being able to do this easily.[DOUBLEPOST=1580731072][/DOUBLEPOST]What hashing algorithm are you proposing? It is very simple to brute force hashed IP addresses, let’s say you store them in bcrypt which is a smart choice as it is quite slow so is good for this explanation. 8x NVIDIA Tesla V100’s which I’m sure you can find on Google Cloud or AWS for fairly cheap (if not free if you take advantage of GCP’s free credit) will calculate 434,200 hashes a second (https://github.com/siseci/hashcat-benchmark-comparison/blob/master/8x Tesla V100 p3.16xlarge Hashcat Benchmark). There are 4 billion possible IPv4 addresses which means it will take 9212 seconds or about 2.5 hours to brute force every possible IPv4 address.
In fact all you'll need is to pepper the raw ip with a value, that way he can still do relational IP checks.What hashing algorithm are you proposing? It is very simple to brute force hashed IP addresses, let’s say you store them in bcrypt which is a smart choice as it is quite slow so is good for this explanation. 8x NVIDIA Tesla V100’s which I’m sure you can find on Google Cloud or AWS for fairly cheap (if not free if you take advantage of GCP’s free credit) will calculate 434,200 hashes a second (https://github.com/siseci/hashcat-benchmark-comparison/blob/master/8x Tesla V100 p3.16xlarge Hashcat Benchmark). There are 4 billion possible IPv4 addresses which means it will take 9212 seconds or about 2.5 hours to brute force every possible IPv4 address.
You've seemed to have failed to understand the point of salting, it's to prevent premade rainbow table lookups. Peppering appends/prepends a hardcoded or jar specific string to the IP address BEFORE HASHING, which is unknown to the attacker. This way, it can't be bruteforced easily.[DOUBLEPOST=1580744867][/DOUBLEPOST]https://en.wikipedia.org/wiki/Pepper_(cryptography)All bcrypt hashes are salted. Salting an IP address will not prevent brute forcing as the salt will be stored alongside the IP address, if you do not store the salt you will be creating a new hash each time a player logs in which would be useless.
I also don’t know what you mean by “peppering”.
I know what a salt is, and what I'm explaining is not a rainbow table, you would input your hashes and then calculate 4 billion hashes with the salts to compare them. If the pepper is included in the jar file what's to stop the bad actor from simply downloading the jar file and extracting the pepper? Note string obfuscation would do nothing here.You've seemed to have failed to understand the point of salting, it's to prevent premade rainbow table lookups. Peppering appends/prepends a hardcoded or jar specific string to the IP address BEFORE HASHING, which is unknown to the attacker. This way, it can't be bruteforced easily.[DOUBLEPOST=1580744867][/DOUBLEPOST]https://en.wikipedia.org/wiki/Pepper_(cryptography)
You're assuming here that the bad actor has access to the jar file, meaning they have full server access; by that point it's game over regardless as they can grab IPs much easier from log files. It's about maximising the amount of time it takes someone to accomplish their task, which, by salting and peppering and hashing, it will do.I know what a salt is, and what I'm explaining is not a rainbow table, you would input your hashes and then calculate 4 billion hashes with the salts to compare them. If the pepper is included in the jar file what's to stop the bad actor from simply downloading the jar file and extracting the pepper? Note string obfuscation would do nothing here.
You're assuming here that the bad actor has access to the jar file, meaning they have full server access; by that point it's game over regardless as they can grab IPs much easier from log files. It's about maximising the amount of time it takes someone to accomplish their task, which, by salting and peppering and hashing, it will do.
You're basically arguing here that standard security practices when dealing with things such as passwords are pointless, it's just another barrier to jump over, not about total prevention.
Stop being pedantic ;p
