Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this package compatible with the Java module? #118

Open
christian-hess-94 opened this issue Jun 12, 2020 · 0 comments
Open

Is this package compatible with the Java module? #118

christian-hess-94 opened this issue Jun 12, 2020 · 0 comments

Comments

@christian-hess-94
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant