🍺 BREW Explorer

← all formulae

libscrypt

brew install libscrypt v1.22 BSD-2-Clause

Library for scrypt

530
30-day installs · #1712
1.4k
90-day · #1864
5.4k
365-day · #1876
124
★ GitHub stars · updated 1y ago

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Library for scrypt",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:38+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libscrypt",
  "github_default_branch": "master",
  "github_last_commit_at": "2024-12-06T05:12:29Z",
  "github_readme_excerpt": "libscrypt\n=========\nLinux scrypt shared library.\n\nFull credit to algorithm designer and example code from Colin Percival here:\nhttp://www.tarsnap.com/scrypt.html\n\nUtilises BASE64 encoding library from ISC.\n\nOfficial project page, including stable tarballs found here:\nhttp://www.lolware.net/libscrypt.html\n\nSimple hashing interface\n\nThe (reference) internal hashing function can be directly called as follows:\n\n    int libscrypt_scrypt(const uint8_t *passwd, size_t passwdlen,\n            const uint8_t *salt, size_t saltlen, uint64_t N, uint32_t r, \n            uint32_t p, /*@out@*/ uint8_t *buf, size_t buflen);\n\nLibscrypt\u0027s easier to use interface wraps this up to deal with the salt and produce BASE64 output as so:\n\n    int libscrypt_hash(char *dst, char *passphrase, uint32_t N, uint8_t r, uint8_t p);\n\nSane constants have been created for N, r and p so you can create a hash like this:\n\n    libscrypt_hash(outbuf, \"My cats\u0027s breath smells like cat food\", SCRYPT_N, SCRYPT_r, SCRYPT_p);\n\nThis function sets errno as required for any error conditions.\n\nOutput stored in \"outbuf\" is stored in a standardised MCF form, which means includes the randomly created, 128 bit salt, all N, r and p values, and a BASE64 encoded version of the hash. The entire MCF can be stored in a database, and compared for use as below:\n\n    retval = libscrypt_check(mcf, \"pleasefailme\");\n    retval \u003c 0 error\n    retval = 0 password incorrect\n    retval \u003e 0 pass\n\nmcf should be defined as at least SCRYPT_MCF_LEN in size.\n\nNote that libscrypt_check needs to modify the mcf string and will not return it\nto the original state. Pass it a copy if you need to keep the original mcf.\n\nA number of internal functions are exposed, and users wishing to create more complex use cases should consult the header file, which is aimed at documenting the API fully.\n\nThe test reference is also aimed at providing a well documented use case.\nBuilding\n--------\n    make\n    make check\nCheck the Makefile for advice on linking agains",
  "github_repo": "technion/libscrypt",
  "github_stars": 124,
  "github_topics": [],
  "homepage": "https://github.com/technion/libscrypt",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 530,
  "installs_365d": 5358,
  "installs_90d": 1411,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-2-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "libscrypt",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1712,
  "rank_365d": 1876,
  "rank_90d": 1864,
  "raw_hash": "76a7f82abcfa5a3e",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/lib/libscrypt.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.22",
  "versioned_formulae": [],
  "why_use_this": null
}