Is it possible to install bcrypt manually

442 views Asked by At

My webhost, iPage, has not yet made bcrypt available for cgi scripts, and because it's not my server I can't install bcrypt myself using pip or easyinstall etc. My question is, would it be possible to download the bcrypt tarball to my pc and unzip and load the directories and files to my iPage site tree myself? Thanks!

1

There are 1 answers

2
Iain On BEST ANSWER

Bcrypt is just a standard that can be implemented in different ways.

I'm not familiar with "iPage" but it sounds like you only have file access.

All you need to do is find a library that implements bcrypt in whatever cgi scripting language you are using, and then include and use it in your code.

For example if you are using php, you will look for a php library that offers bcrypt. You might find this library which implements bcrypt in php. All you need to do is add the password.php under the lib directory to your site, then in your php scripts that need bcrypt simply require the new file and you should be able to use its functions. See the library documentation for information on that.