dcodeIO
dcodeIO
Yeah, that's necessary, since the file indicates the expected environment when compiling with closure compiler, to make it aware of it, so it doesn't rename the wrong things during optimizations....
Depends whether it's just a matter of also recognizing `2b` as a valid hash or if it's necessary to polyfill a bug, which I'd rather avoid.
`require('bcrypt-nodejs')` isn't this package
Unless either laravel's implementation or bcrypt.js does something wrong, yes, hashes between different libraries should be compatible.
My assumption here is that the input salt is somehow wrong and not properly encoded, thus leading to unpredictable behaviour down the road. There'd be a lot more breakage and...
There are several places, most likely, that could use a fixed-size array instead. That should be even better than string concatenation. Hasn't been a priority so far.
```js for (var res = new Array(10000), i = 0; i < 10000; i++) { res[i] = 'a'; } res = res.join(""); ```
I'd appreaciate a fix as I am not used to the proxy API in and around node!
In Class2.js, try: ``` js var path = require("path"), Class1 = require(path.join(__dirname, "Class1.js")); ```
I am sorry, I do not seem to understand this fully. Of course you can change the require statement to whatever you like, for example: `require(path.join(__dirname, "..", "Class1.js"));` with __dirname...