Java BCrypt不支持更新的版本(以2b,2y为前缀的种子等) [英] Java BCrypt not supporting newer versions (seeds prefixed with 2b, 2y, etc)

查看:1043
本文介绍了Java BCrypt不支持更新的版本(以2b,2y为前缀的种子等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jBCrypt(在Java中),它无法从PHP或Python处理较新版本的BCrypt。例外是无效的盐修订版,因为它只支持2a版本。是否有另一个更新的BCrypt Java库?

I'm using jBCrypt (in Java) which cannot handle newer versions of BCrypt from PHP or Python. The exception is "Invalid salt revision" as it only supports "2a" version. Is there another updated Java library of BCrypt?

推荐答案

谷歌代码jbcrypt工作组有一个未解决的问题。他们正在引入支持'2y'哈希的jBCrypt分支,但它从未合并到官方分支。

There is an open issue on google code jbcrypt working group. They are introducing jBCrypt branch which supports '2y' hashes but it was never merged to official branch.

  • https://code.google.com/archive/p/jbcrypt/issues/9
  • https://github.com/Oscil8/jBCrypt/tree/djm-2y-etc

此分支源自jBCrypt-0.3但同时有更新版本的jBCrypt-0.4。我已经准备了基于'2y'分支的合并版本,溢出修复为0.4。

This branch is derived from jBCrypt-0.3 but meantime there were a newer version jBCrypt-0.4. I've prepared merged version based on '2y' branch with overflow fix from 0.4.

你可以在这里找到代码:
https://github.com/anebril/jBCrypt/tree/gcsvn-merged-0.4-overflow-fix

You can find the code here: https://github.com/anebril/jBCrypt/tree/gcsvn-merged-0.4-overflow-fix

这篇关于Java BCrypt不支持更新的版本(以2b,2y为前缀的种子等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆