Skip to content

Programming playground for my trials and experiments related to cryptography and security in Java

Notifications You must be signed in to change notification settings

Shashi-Bhushan/java-security-trials

Repository files navigation

Java Security Trials

Programming playground for my trials on cryptography and security in Java.

Sr No. Experiment Source code Link Reference
1. Cracking Random number Generator Link Cracking Random Number Generator

Notes on few common Topics

Hashing

It is a process to convert a message to a fixed length random bytes. Bytes of hash output are usually denoted in Hex or Base 64 notation.

  • When hashing is used for non security purpose, consider using MD5 or SHA family of hashes.
  • When hashing is used for security purpose, consider using cryptographically secure hashes like BCrypt or Scrypt or Argon2

Hash function should have these 4 properties - Deterministic, irreversible, high entropy and collission resistance.

AFAIK, Java natively supports only PBKDF2, but others can be added via libraries.

Obfuscation

Obfuscation is not encryption. It merely changes your plain text values to an indistinguishable random value, whose only purpose is security through obscurity at least in principle.

About

Programming playground for my trials and experiments related to cryptography and security in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages