Thread: Vencillio Password hashing

Results 1 to 4 of 4
  1. #1 Vencillio Password hashing 
    Donator

    Join Date
    Oct 2008
    Posts
    77
    Thanks given
    8
    Thanks received
    2
    Discord
    View profile
    Rep Power
    18
    So the vencillio source that i have downloaden dont has a password encryption.

    I like to add it, found some pi shit to add it but it dont strokes with anything on vencillio.

    So does someone has a snippit for this, or can help me out?

    Huge tnx!
    Support:
    Nothing.
    Do you want use this space?
    PM Me
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,187
    Thanks given
    1,124
    Thanks received
    834
    Discord
    View profile
    Rep Power
    1514
    i'd strongly avoid using any code from pi, it probably uses an md5 hash.

    look into bcrypt
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    touched like seafood
    Women's Avatar
    Join Date
    Mar 2010
    Posts
    1,830
    Thanks given
    651
    Thanks received
    1,002
    Discord
    View profile
    Rep Power
    3071
    i'm sure java provides some libraries you can use for this

    additionally, here's a good link to check out (with lots of examples): [Only registered and activated users can see links. ]

    as fire cape mentioned I wouldn't use md5 as it's not very secure anymore


    When you ape the cops it ain't anarchy
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Age
    23
    Posts
    2,865
    Thanks given
    62
    Thanks received
    1,530
    Discord
    View profile
    Rep Power
    5000
    Use this depedency
    Code:
    <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-crypto</artifactId>
    And when you do your login do this
    Code:
    BCrypt.hashpw(password, BCrypt.gensalt(12))
    The 12 stands for how strong you want the hashing to be, the higher the number, the longer it will take for this to finish. 10 is the normal number of rounds, I did 12 just to make it a tad stronger. Even going up +1 takes a considerable longer amount of time from the previous.

    And to check if your password is correct do this
    Code:
    BCrypt.checkpw(password, player.getPassword())
    Obviously change what you need to fit your server but yeah super easy

    Spoiler for signature:
    When your vision is crystal clear, they say it's razor-sharp
    A focused mind is said to be like a knife, but the scalpel is wisdom
    All one can do is accept that life is a double-edged sword
    Stay on the edge

    -



    Reply With Quote  
     

  7. Thankful users:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. VB password hash changed?
    By Shadowy in forum Application Development
    Replies: 3
    Last Post: 11-01-2014, 03:24 AM
  2. [PHP 5.5] Password Hashing
    By Intredy in forum Website Development
    Replies: 3
    Last Post: 06-11-2014, 05:02 PM
  3. Password Hashing?
    By Intredy in forum Application Development
    Replies: 0
    Last Post: 11-10-2013, 08:53 AM
  4. Replies: 7
    Last Post: 01-03-2013, 01:02 AM
  5. Password Hashing
    By Dreamweaver in forum Website Development
    Replies: 6
    Last Post: 10-11-2012, 05:22 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •