Skip to content

Instantly share code, notes, and snippets.

View TerjeBr's full-sized avatar

Terje Bråten TerjeBr

  • LINX
  • London, England
View GitHub Profile
name "Test IX-API with Blackfire"
# Default endpoint
# Can be override with option "--endpoint=http://newendpoint.com"
endpoint "https://ix-api-uat1.linx.net/api/v1/"
scenario
name "Get connections"
header "Accept: application/json"
@TerjeBr
TerjeBr / BcryptPasswordEncoder.php
Created November 15, 2012 09:20
Encoder using crypt and blowfish (Bcrypt)
<?php
namespace Symfony\Component\Security\Core\Encoder;
/**
* BcryptPasswordEncoder uses the PHP "crypt" function with the blowfish
* algorithm (PHP crypt uses the type of blowfish called bcrypt).
*
* References on why bcrypt:
* http://codahale.com/how-to-safely-store-a-password/
* http://security.stackexchange.com/questions/4781/do-any-security-experts-recommend-bcrypt-for-password-storage