bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

Is this package compatible with the Java module?

Open christian-hess-94 opened this issue 5 years ago • 0 comments

My company has a glassfish server running a java EE application. They use Bcrypt to encrypt some data that is saved to the database, but they do it from a web application. I was hired to make an app and I've chosen react-native as my framework. The problem is that there is a authentication functionality on it and I need to encrypt the data before sending it via a request to the server (we don't currently have https enabled). So my question is if I can encrypt the data using this package and be able to easily decrypt it on the server which uses the bcrypt maven module.

This is the encription code that is used:

String generatedSalt= BCrypt.gensalt();
 // Gera a senha encriptada utilizando o sal gerado
encryptPw= BCrypt.hashpw(pw, generatedSalt);
return encryptPw;

I do have access to the code of the hashpw() method

christian-hess-94 avatar Jun 12 '20 11:06 christian-hess-94