encrypt() function name fixed ; changing data type for compressed frames