probably not the most efficiant method, but why not just cut off all chars except the first or last 10?
with php; first 10:
$myPass = substr($myPass, 0, 10);
with php; last 10:
if (strlen($myPass) > 10) {
$myPass = substr($myPass, strlen($myPass)-10, strlen($myPass));
}
since a sha1 or md5 string is pretty random based on the input you should get a pretty secure pw
Edit: Dark-Skys beat me 
|