changed variable name to prevent interference with Perl locale
updated crypto class