Quellcode durchsuchen

Rename base64Encode to toBase64 and hexEncode to toHex

= vor 9 Jahren
Ursprung
Commit
59df376a3a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/modules/crypto.c

+ 2 - 2
app/modules/crypto.c

@@ -112,8 +112,8 @@ static int crypto_mask( lua_State* L )
 const LUA_REG_TYPE crypto_map[] =
 {
   { LSTRKEY( "sha1" ), LFUNCVAL( crypto_sha1 ) },
-  { LSTRKEY( "base64Encode" ), LFUNCVAL( crypto_base64_encode ) },
-  { LSTRKEY( "hexEncode" ), LFUNCVAL( crypto_hex_encode ) },
+  { LSTRKEY( "toBase64" ), LFUNCVAL( crypto_base64_encode ) },
+  { LSTRKEY( "toHex" ), LFUNCVAL( crypto_hex_encode ) },
   { LSTRKEY( "mask" ), LFUNCVAL( crypto_mask ) },
 
 #if LUA_OPTIMIZE_MEMORY > 0