Skip to content

Instantly share code, notes, and snippets.

View andreasbkrueger's full-sized avatar

andreasbkrueger

View GitHub Profile
'use strict';
let bcrypt = require('bcrypt');
let expect = require('chai').expect;
describe('bcypt validating', function () {
it('should validate a bcrypt hash generated in PHP', function () {
let password = 'test';
let bcryptHash = '$2y$13$gss9tp0xkdss8oksk040kOzPhX7iIr6hkIWOj5vEK4tO8P.C5kDi2';
### Keybase proof
I hereby claim:
* I am andreasbkrueger on github.
* I am andreasbkrueger (https://keybase.io/andreasbkrueger) on keybase.
* I have a public key whose fingerprint is 52B3 4C76 0995 A092 6F61 7EE6 B173 2BAA 45A3 03E3
To claim this, I am signing this object:
<?php
if(APPLICATION_ENV === 'production' AND $_SERVER['HTTP_HOST'] !== 'gutscheine.computerbild.de') {
switch(APPLICATION_COUNTRY) {
case 'ie':
$domain = 'www.discountcodes.ie';
$domainPartnerApi = 'api.discountcodes.ie';
break;
case 'pl':
@andreasbkrueger
andreasbkrueger / Mgc.php
Created September 10, 2012 09:42
Routing - question
// Gifts
'gifts-by-category' => 'geschenkgutscheine',