Secure Sockets for Socks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

[DEPRECATED] SecretSocks

Build Status Platforms Package Managers

SSL/TLS addon for Socks.

⚠️ This project is now deprecated and will not receive any further maintenance.

🔧 Usage

This package extends RawSocket from Socks to provide a makeSecret() method.

When called, this method initializes an SSL/TLS socket to send and receive data securely.


Swift Package Manager

.Package(url: "", majorVersion: 0, minor: 1)

You also need to install the system openssl package, see instructions here:


Since TCPInternetSocket inherits from RawSocket, the makeSecret() method is available.

let address = InternetAddress(hostname: "", port: 443)
let socket = try TCPInternetSocket(address: address)
try socket.connect()

let secureSocket = try socket.makeSecret()
try secureSocket.connect()

try secureSocket.send([0x00, 0x01, 0x02, ...])
let response = try secureSocket.receive(max: 2048)

💝 Contributing

Please create an issue with a description of your problem or open a pull request with a fix.

✌️ License