Skip to content

Plugin for Unreal Engine, implements TLS stream

License

Notifications You must be signed in to change notification settings

glensand/TinyTls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyTls

License: MIT GitHub last commit GitHub stars GitHub watchers GitHub followers

A few words about

This repository contains an implementation of the TLS Stream Plugin for Unreal Engine. The TLS Stream Plugin is a secure communication protocol that is used to encrypt data transmission between two endpoints over the internet. This plugin provides developers with a simple and efficient way to add secure communication capabilities to their Unreal Engine applications

The plugin is designed to work with Unreal Engine 4.20 - 4.27.2, 5.0 - 5.2 and provides a wrapper around the OpenSSL library, which is widely used for implementing secure communication protocols. The plugin supports both the TLS 1.2 and 1.3 protocols, which are the latest and most secure versions of the TLS protocol.

The implementation of the plugin provides a simple API for establishing secure connections between endpoints, sending and receiving encrypted data, and managing TLS session state.

The plugin is open source and can be used for both commercial and non-commercial projects under the MIT license. The repository contains the complete source code for the plugin, along with sample applications and documentation on how to use the plugin in your own projects.

Example

#include "TlsStream.h" // the only include you need

void Example1()
{
	auto* Stream = TinyTls::CreateTlsStream(); // Obttain the stream implementation
	Stream->Connect("127.0.0.1", "6969");

	const FString Message = "Disaster is Here";
	
	Stream->Send( Message.Len()); // chars count first
	Stream->Send(GetData(Message), Message.GetCharArray().Num()); // And the data
	
	TCHAR Buffer[1024];
	const auto Length = Stream->Receive<int32_t>();
	Stream->Receive(Buffer, Length);

	// Do some stuff
	
	Stream->Disconnect();
}

Good luck!;D

About

Plugin for Unreal Engine, implements TLS stream

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published