modify encrypt cipher last character not '=' bug