I think following function doesn’t need any more description but the inline comments. The Function: // f(ucking) u(ncrackable) e(ncryption) function function fue($hash,$times){ // Execute the encryptions as many times as the user wants for($i=$times;$i>0;$i–) { // Encode with base64… $hash=base64_encode($hash); […]
About Daniel Kurdoghlian
Posts by Daniel Kurdoghlian:
February 1, 2011
The F(ucking) U(ncrackable) E(ncryption) Function in PHP
Daniel Kurdoghlian code snippet, PHP code 3 Comments
January 31, 2011
Clean Up User-Input & Convert Line-Breaks To BR-tags
Daniel Kurdoghlian code snippet, PHP, WordPress code 1 Comment
A simple PHP function to clean up user input. It does following: converts & to & converts to > converts “ to " and converts line-breaks to The Function: function clean($str) { $str = preg_replace(’/&(?!#[0-9]+;)/s’, ‘&’, $str); $str = str_replace(array('< ‘, ‘>’, ‘"’), array(’<’, ‘>’, ‘"’), $str); $str = […]
January 25, 2011
What if Visual Studio had Achievements?
Daniel Kurdoghlian .NET, C#, funny, Visual Studio blog, fun 4 Comments
What if Visual Studio supported achievements, just like games on Steam, Xbox or PS3? Bragging to your coworkers about which one you’ve just unlocked, imagine that! Here’s a little proposed list for some of them. .NET / C# flavored, of course. Falling Down – Created a new SharePoint project Job Security – Written a LINQ […]
February 2, 2011
CSS Print Framework
Daniel Kurdoghlian cross-browser, CSS, Framework, WordPress code 1 Comment
If you want to improve your layouts for printing, this mini CSS Framework will definitely assist you. What is a CSS Framework? “A CSS framework is a library that is meant to allow for easier, more standards-compliant styling of a webpage using the Cascading Style Sheets language. Just like programming and scripting language libraries, CSS […]