fixed cipher problem on android platform