added encryption string encoding