Why this MD5 result with Salt has "==" in the end of result string?

I have java code that use jasypt (Java Simplified Encryption) library: StandardStringDigester digester = new StandardStringDigester(); digester.setAlgorithm("MD5"); digester.setIterations(1); FixedStringSaltGenerator saltGenerator = new FixedStringSaltGenerator(); saltGenerator.setSalt("justAnotherSalt"); digester.setSaltGenerator(saltGenerator); digester.setSaltSizeBytes(5); String digest = digester.digest("my_password"); System.out.println(digest); You can see that I used MD5 algorithm with salt. The result in console is: I9uMOxDiImtxMXKXkt2EUw== I want to know why there are "==" characters in the end of result string? It's only exist if I used Salt.
See related: stackoverflow.com/questions/6916805/…

以上就是Why this MD5 result with Salt has "==" in the end of result string?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏