public byte[] EnPwd_UTF8(List <byte[]> data) { string input_str = Encoding.UTF8.GetString(data[0]); string public_key = Encoding.UTF8.GetString(data[1]); try { // StartWith -----BEGIN PUBLIC KEY----- 216 EndWith -----END PUBLIC KEY----- return(RSAHelper.Encrypt_PEM_Hex(data[0], Encoding.UTF8.GetString(data[1]))); } catch (Exception) { return(Encoding.UTF8.GetBytes("")); } }