Skip to content

Java implementation of Firebase's custom scrypt implementation

License

Notifications You must be signed in to change notification settings

SmartMoveSystems/firebase-scrypt-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firebase-scrypt-java

Java implementation of Firebase's custom scrypt implementation, based on 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));

About

Java implementation of Firebase's custom scrypt implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages