Subversion Repositories oidplus

Rev

Rev 642 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 642 Rev 699
Line 31... Line 31...
31
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
**/
33
**/
34
 
34
 
35
function bcrypt_hash(s, rounds/*=10*/) {
35
function bcrypt_hash(s, rounds/*=10*/) {
36
        rounds = (typeof rounds === 'undefined') ? 10 : rounds;
36
        rounds = (typeof rounds === 'undefined') ? 10 : rounds; // do not translate
37
 
37
 
38
        var BCRYPT_SALT_LEN = 16;
38
        var BCRYPT_SALT_LEN = 16;
39
 
39
 
40
        var BLOWFISH_NUM_ROUNDS = 16;
40
        var BLOWFISH_NUM_ROUNDS = 16;
41
 
41