Skip to main content

flutter_chaoxing 0.1.1 copy "flutter_chaoxing: ^0.1.1" to clipboard
flutter_chaoxing: ^0.1.1 copied to clipboard

Typed Chaoxing (学习通) protocol clients, request signing, and classroom sign-in for Dart.

Changelog #

0.1.1 #

  • Add ChaoxingUserAgent, reproducing the official 7.0.2 User-Agent structure (p482ej/C30158f.java). Every constant is read from the decompiled source, not guessed: protocol tag 3 (C37365n.f144063a), screen code 264 (C32754f.f129562A via C32316b.m127070g), channel @Kalimdor (C32764p.mo127076e/mo127077f both false), package com.chaoxing.mobile. The native cryptUserAgent wrapper is not reversed, so the plaintext suffix is emitted (server-tolerated; see the class doc).
  • ChaoxingAuthService, ChaoxingSignService, and ChaoxingApiService now take an optional userAgent, defaulting to the previous value.
  • Confirm the device-registration public key: static RE shows getDeviceInfo (encrypt) and decryptDeviceInfo (decrypt) both use the SPKI key at libsecuritylib.so 0x52e19, which is the one already embedded. Document the getDeviceInfo JSON key order and that platform/os_name are "android" and mediaDrmId comes from Settings.Secure.getString.

0.1.0 #

  • Initial public preview extracted from the Luotopia app.
  • Byte-exact ports of the Chaoxing 7.0.2 request-signing primitives: the two inf_enc query-signing variants, the cxsign/signToken header scheme, and the webRequestSign RSA-SHA256 bridge used by CLIENT_FORM_SIGN.
  • Device registration helpers (CxDevice.getDeviceInfo / decryptDeviceInfo) with chunked RSA and jsoncpp FastWriter alignment.
  • Login and SSO cookie-harvest client (ChaoxingAuthService).
  • Classroom sign-in client (ChaoxingSignService), including the native Fanya usersign/addsign endpoint and the CLIENT_FORM_SIGN bridge implementation.
  • Student-facing API client (ChaoxingApiService): notices, grades, homework feed, live classes, course content, timetable, messages, and discussions.
  • Typed domain models mirroring the official StudentMission, Course, and Clazz schemas, plus the activeType dispatch table.
0
likes
0
points
483
downloads

Publisher

verified publisherwhu.sb

Weekly Downloads

Typed Chaoxing (学习通) protocol clients, request signing, and classroom sign-in for Dart.

Repository (GitHub)
View/report issues

Topics

#chaoxing #xuexitong #sign-in #education

License

unknown (license)

Dependencies

crypto, dio, pointycastle

More

Packages that depend on flutter_chaoxing