Java md5, the PHP way

前端 未结 5 1101
执念已碎
执念已碎 2020-12-14 12:49

I have been working on this for hours, but I can\'t get it to work.

Basically I am developing a REST client in Java for a REST server in PHP. Both the client and the

5条回答
  •  春和景丽
    2020-12-14 13:38

    if you use spring security framework , just do :

    import org.springframework.security.authentication.encoding.*
    
    new Md5PasswordEncoder().encodePassword("myWord",null)
    

    The same result as PHP::md5(). I confirm

    See more examples

提交回复
热议问题