Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java Salted Password Hashing #5

Closed
kingrishabdugar opened this issue Aug 21, 2022 · 5 comments
Closed

Add Java Salted Password Hashing #5

kingrishabdugar opened this issue Aug 21, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@kingrishabdugar
Copy link
Owner

The salt is random data very often used in cryptography as additional input to a hash function. Doing encryption and decryption of a String with a salt implies that you should:

  1. Read an initial String.
  2. Generate random bytes to be placed in the salt.
  3. Use the BASE64Encoder to encode both the salt and the String and return them, as described in the encrypt(String str) method.
  4. Read the encrypted String.
    Finally, Return the String representation of the byte array,
@kingrishabdugar kingrishabdugar added the bug Something isn't working label Sep 17, 2022
@arpanbiki
Copy link

please assign me this sir.

@kingrishabdugar
Copy link
Owner Author

@arpanbiki Sure ! Wishing you the very best

@kingrishabdugar
Copy link
Owner Author

@arpanbiki do ⭐the repo before you begin
Also, you can start your work from this folder :
https://github.com/kingrishabdugar/Green-Leaf-Gourmet/tree/main/src
Open using Apache NetBeans
The Dao folder stores the connection with the Database
https://github.com/kingrishabdugar/Green-Leaf-Gourmet/blob/main/src/dao/ConnectionProvider.java

@harshitsurana
Copy link

Also, the Security Question Answer should not be saved directly in the database. It should be hashed and stored, as security question answers can be used to change the password using forgot password utility.

@kingrishabdugar
Copy link
Owner Author

Also, the Security Question Answer should not be saved directly in the database. It should be hashed and stored, as security question answers can be used to change the password using forgot password utility.

Absolutely correct 💯, will fix both of these asap

kingrishabdugar added a commit that referenced this issue Feb 12, 2023
…s feature

Issues #5, #17, #18, #19 resolved | Loading GIFs and Check for updates feature and Better filter in View Bill And Order Details
kingrishabdugar added a commit that referenced this issue Feb 12, 2023
…BillAndOrderDetails

Issues #5, #17, #18, #19 resolved | Loading GIFs and Check for updates feature and Better filter in View Bill And Order Details
kingrishabdugar added a commit that referenced this issue Feb 12, 2023
…s feature and Better filter in View Bill And Order Details
kingrishabdugar added a commit that referenced this issue Feb 12, 2023
…s feature and Better filter in View Bill And Order Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants