Tor Onion Proxy For Flutter (Android only)

What is this?

This is a Flutter Plugin for Android, based on code from Tor Onion Proxy Library and Tor Android.

Check out the example app included in this repo for reference on how to use this library with sockets.

Currently used Tor version

This is built using tor 0.4.1.5

All releases

Preview

123

How do I use this plugin?

1. add dependencies into you project pubspec.yaml file

dependencies:
    utopic_tor_onion_proxy: version_number

2. import lib

import 'package:utopic_tor_onion_proxy/utopic_tor_onion_proxy.dart';

3. start Tor Onion Proxy

try {
    port = await UtopicTorOnionProxy.startTor();
} on PlatformException catch (e) {
    print('Failed to get port. Message: ${e.message}');
}

4. check is Tor OP running

try {
    await UtopicTorOnionProxy.isTorRunning();
} on PlatformException catch (e) {
    print('Failed to get is tor running. Message: ${e.message}');
}

5. stop Tor Onion Proxy when done

try {
    await UtopicTorOnionProxy.stopTor();
} on PlatformException catch (e) {
    print('Failed to stop tor. Message: ${e.message}');
}

Libraries

utopic_tor_onion_proxy