Search code examples
cnetwork-programmingtor

Program on top of tor


Is there a way to write a program on top of tor?

I would like to write a ncurses mail program that uses tor for connections; the base of my program will be done with GPGME api's - for encrypting and decrypting e-mail -, therefore I would to connect my mail client on tor network for sending e-mail.

The concept is simple:

alice : Mail -> encrypting (bob pulic key) > Tor network -> Bob
bob: decrypting mail -> new mail -> encrypting (alice pub key)  -> Tor network -> Alice 

In these days I'm learning GPGME but my problem is Tor, is there a way to do that? API's?


Solution

  • Tor would be pretty useless if every program that used it had to be aware of it. Tor is simply acting as a proxy server. Give your mail client the ability to work with a proxy server (SOCKS) and it will automatically be able to use tor.