Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smartmovesystems/firebase-scrypt-java
Java implementation of Firebase's custom scrypt implementation
https://github.com/smartmovesystems/firebase-scrypt-java
Last synced: 2 days ago
JSON representation
Java implementation of Firebase's custom scrypt implementation
- Host: GitHub
- URL: https://github.com/smartmovesystems/firebase-scrypt-java
- Owner: SmartMoveSystems
- License: mit
- Created: 2020-09-07T05:58:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T00:56:32.000Z (over 3 years ago)
- Last Synced: 2023-07-15T16:38:57.893Z (over 1 year ago)
- Language: Java
- Size: 27.3 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# firebase-scrypt-java
Java implementation of Firebase's custom scrypt implementation, based on [firebase/scrypt](https://github.com/firebase/scrypt).Usage:
```
// The user's raw text password
String passwd = "user1password";// Params from the exported account
String salt = "42xEC+ixf3L2lw==";// Params from the project's password hash parameters
String saltSep = "Bw==";
String signerKey = "jxspr8Ki0RYycVU8zykbdLGjFQ3McFUH0uiiTvC8pVMXAn210wjLNmdZJzxUECKbm0QsEmYUSDzZvpjeJ9WmXA==";
int rounds = 8;
int memcost = 14;String expectedHash = "lSrfV15cpx95/sZS2W9c9Kp6i/LVgQNDNC/qzrCnh1SAyZvqmZqAjTdn3aoItz+VHjoZilo78198JAdRuid5lQ==";
assertTrue(FirebaseScrypt.check(passwd, expectedHash, salt, saltSep, signerKey, rounds, memcost));
```