lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs

commit a913125fa3bd9da56659b6deeef0102fce2cfa29
parent b71abf3974bf39306862aa476904b29066f04688
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri, 16 Dec 2011 15:20:24 +0000

Add Lua signatures before functions

Diffstat:
src/luabcrypt.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/luabcrypt.c b/src/luabcrypt.c @@ -8,6 +8,7 @@ #include "blf.h" +// bcrypt.digest( key, salt ) static int luabcrypt_digest( lua_State *L ) { const char *key = luaL_checkstring( L, 1 ); @@ -23,6 +24,7 @@ static int luabcrypt_digest( lua_State *L ) return 1; } +// bcrypt.gensalt( logRounds ) static int luabcrypt_gensalt( lua_State *L ) { u_int8_t logRounds = luaL_checkinteger( L, 1 ); @@ -37,6 +39,7 @@ static int luabcrypt_gensalt( lua_State *L ) return 1; } +// bcrypt.verify( key, digest ) static int luabcrypt_verify( lua_State *L ) { const char *key = luaL_checkstring( L, 1 );