Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.
/ firebase-scrypt Public archive

This is the golang implementation of the modified Scrypt algorithm used by Firebase Auth.

License

Notifications You must be signed in to change notification settings

Aoang/firebase-scrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase scrypt

GoDoc Go Report Card Release MIT license

This is the golang implementation of the modified Scrypt algorithm used by Firebase Auth.

Sample

package main

import scrypt "github.com/Aoang/firebase-scrypt"

func main(){
	app, _ :=scrypt.New(
		"YE0dO4bwD4JnJafh6lZZfkp1MtKzuKAXQcDCJNJNyeCHairWHKENOkbh3dzwaCdizzOspwr/FITUVlnOAwPKyw==",
		"Bw==",
		8,
		14,
	)
	app.FirebaseVerify(
		"8x4WjoDbSxJZdR",
		"sPtDhWcd1MfdAw==",
		"xbSou7FOl6mChCyzpCPIQ7tku7nsQMTFtyOZSXXd7tjBa4NtimOx7v42Gv2SfzPQu1oxM2/k4SsbOu73wlKe1A==",
	)
}