You can use md5.
Type the word you want here :
http://www.md5encryption.com/
Add the encrypted one in the plugin or in a .ini file w/e
Tested with string "ConnorMcLeod" and works.
Don't use existing word for passwords else it is easy to find them.
PHP Code:
#include <amxmodx>
#define VERSION "0.0.1"
#define PLUGIN "Encrypt Test"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
register_clcmd("test_encrypt", "test_encrypt")
}
public test_encrypt( id )
{
static encrypted_word[] = "ea8a91a618b679e5a5ddbfd8610de0a5"
new szArg[32], szMd5[34]
read_argv(1, szArg, charsmax(szArg))
md5(szArg, szMd5)
if( equal(szMd5, encrypted_word) )
{
client_print(id, print_console, "Arg matches !!!")
}
return PLUGIN_HANDLED
}
__________________