Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosh-dart

Pure Dart mosh protocol implementation. No native extensions, no FFI.

Used by the Unix Shells mobile app to run mosh on iOS and Android where bundling a C binary is impractical.

What it does

AES-128-OCB3 authenticated encryption (RFC 7253), SSP transport with sequencing and retransmission, datagram fragmentation, and protobuf state sync. Same wire format as C mosh.

Includes optional latch extension fields for capability negotiation and session control. Standard mosh servers ignore these (forward-compatible).

Files

  • lib/ocb.dart -- AES-128-OCB3
  • lib/mosh_transport.dart -- SSP transport
  • lib/mosh_fragment.dart -- fragmentation and reassembly
  • lib/mosh_pb.dart -- protobuf encoding (includes latch extensions)

License

Copyright (c) 2026 Unix Shells. MIT license. See LICENSE.

About

Pure Dart mosh protocol implementation.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages