- delete MTA/x64/linux-libs/libstdc++.so.6
- install the lua library,
apt install liblua5.1-0-dev
on Ubuntu/Debian - run
make
Note if you plan to use this compiled module you must delete the included linux library provided by MTA as it contains older versions of Glibc incompatible with this. Requires version 'GLIBCXX_3.4.18'.
- using visual studio, build the sln
string bcrypt_hashpw(string password, string salt)
Password is the password you want to encrypt
Salt is the salt generated by bcypt_gensalt
string bcypt_gensalt(int work_factor)
Work_factor is the 2^work_factor you wish to generate the salt with.
boolean bcrypt_checkpw(string password, string digest)
Returns true if the password is verified
Returns false if the password is not matching