Skip to content

Instantly share code, notes, and snippets.

@ss23
Created January 23, 2014 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ss23/8589243 to your computer and use it in GitHub Desktop.
Save ss23/8589243 to your computer and use it in GitHub Desktop.
<?php
$long = str_repeat('a', 100);
var_dump(crypt($long . "1", '$2y$04$saltysaltysaltysaltytt'));
var_dump(crypt($long . "2", '$2y$04$saltysaltysaltysaltytt'));
var_dump(crypt($long . "12", '$2y$04$saltysaltysaltysaltytt'));
@ss23
Copy link
Author

ss23 commented Jan 23, 2014

string(60) "$2y$04$saltysaltysaltysaltyte9usMwh4/IIx0al18sl5oEFVM2Z/XJ7q"
string(60) "$2y$04$saltysaltysaltysaltyte9usMwh4/IIx0al18sl5oEFVM2Z/XJ7q"
string(60) "$2y$04$saltysaltysaltysaltyte9usMwh4/IIx0al18sl5oEFVM2Z/XJ7q"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment