Skip to content

Instantly share code, notes, and snippets.

@jsakas
Last active August 25, 2021 23:52
Show Gist options
  • Save jsakas/41898fca02efe2107ce669c0de53149c to your computer and use it in GitHub Desktop.
Save jsakas/41898fca02efe2107ce669c0de53149c to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Install Google's modified scrypt package for Firebase auth on macOS.
# https://github.com/firebase/scrypt
#
# Last tested on macOS Big Sur 11.3.1 (20E241)
#
brew install autoconf automake libtool
curl -sL https://github.com/firebase/scrypt/archive/master.tar.gz | tar xz
cd scrypt-master
autoreconf -i
if hash brew 2>/dev/null; then
opensslPath=$(brew --prefix openssl)
export CFLAGS="$CFLAGS -I$opensslPath/include"
export LDFLAGS="$LDFLAGS -L$opensslPath/lib"
fi
./configure
make
sudo cp ./scrypt /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment