lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs

test-chroot.lua (222B)


      1 #! /usr/bin/lua
      2 
      3 local setuid = require( "setuid" )
      4 
      5 assert( setuid.chroot( "." ) )
      6 assert( not io.open( "/etc/passwd", "r" ) )
      7 
      8 local bcrypt = require( "bcrypt" )
      9 
     10 print( "It works!" )
     11 print( bcrypt.digest( "adsf", 5 ) )