Coder Social home page Coder Social logo

bcrypt.rkt's Introduction

A Racket interface to bcrypt

This is derived from bcrypt interface from the Python 'cryptacular' library by Daniel Holth, available here: https://bitbucket.org/dholth/cryptacular/

Includes the C sources for a version of bcrypt, which are compiled as part of raco setup bcrypt. The version of bcrypt is by Solar Designer, and is available here: http://www.openwall.com/crypt/

A C compiler is required at installation time, and is automatically found by the dynext library.

Available under the MIT license.

bcrypt.rkt's People

Contributors

bogdanp avatar jryans avatar leifandersen avatar licentious avatar mflatt avatar rpicard avatar samth avatar takikawa avatar tonyg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bcrypt.rkt's Issues

linker error on Linux

Not sure if this is a bcrypt or dynext issue. Or maybe it tries to do it this way to find the library during FFI at runtime.

Anyway, installing into a user scope on Linux (non-root user), I get an ld error due to it trying to write into the main installation.

link-extension: (/usr/bin/gcc -fPIC -shared -O2 -fomit-frame-pointer -funroll-loops -DNO_BF_ASM -I /home/sam/.local/share/racket/snapshot/pkgs/bcrypt/bcrypt/private/crypt_blowfish-1.2 /home/sam/.local/share/racket/snapshot/pkgs/bcrypt/bcrypt/private/crypt_blowfish-1.2/crypt_blowfish.c /home/sam/.local/share/racket/snapshot/pkgs/bcrypt/bcrypt/private/crypt_blowfish-1.2/crypt_gensalt.c /home/sam/.local/share/racket/snapshot/pkgs/bcrypt/bcrypt/private/crypt_blowfish-1.2/wrapper.c -o /usr/local/stow/racket-8.3.0.10/lib/racket-8.3.0.10/libcrypt_blowfish.so)
/usr/bin/ld: cannot open output file /usr/local/stow/racket-8.3.0.10/lib/racket-8.3.0.10/libcrypt_blowfish.so: Permission denied

link-extension: can't find an installed linker

On a fresh AWS instance (kindly provided by @samdphillips), with Racket 8.5 installed from PPA, installing the package results in the following error:

raco setup: pre-installing: <pkgs>/bcrypt/bcrypt (bcrypt)
link-extension: can't find an installed linker
  context...:
   /usr/share/racket/collects/setup/setup-core.rkt:926:2: do-install-part
   /usr/share/racket/collects/setup/setup.rkt:78:3
   /usr/share/racket/collects/pkg/main.rkt:17:0: setup
   body of (submod "/usr/share/racket/collects/pkg/main.rkt" main)
   /usr/share/racket/collects/raco/raco.rkt:41:0
   body of "/usr/share/racket/collects/raco/raco.rkt"
   body of "/usr/share/racket/collects/raco/main.rkt"

It makes sense that some tools are required for installation, but that requirement should be made explicit and documented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.