Nov 30, 2015 06:16 PM
(This post was last modified: Dec 9, 2015 01:59 PM by debug.)
Hey all!
Intro
Project Overview
Globals
Client
Server
Example Project (C#)
https://github.com/debug-hf/LiteCode-Example
https://github.com/AnguisCaptor/LiteCode
https://github.com/AnguisCaptor/SecureSocketProtocol
Project Explanation
Sorry the volume is a bit low.
I plan to update this with pictures and all later, but right now this is all I have time for. Paruse the source, it's pretty straight forward. If you have any questions let me know.
Hope this helps secure your applications.
Enjoy!
All credits to LiteCode and SecureSocketProtocol goes to DragonHunter
Intro
- I have written up a basic client/server example of how to use LiteCode in order to protect your .NET applications. LiteCode allows you to remotely execute code from a server application, and use that data securely. I have used a combination of LiteCode + .NETSeal in my applications, and they have yet to be cracked.
Project Overview
Globals
- Public Key - key that users can view publicly (aka, store in project resources.)
- Private Key(s) - keys that must not be stored client side. You should download your private key(s) from your webserver (stored encrypted), after you have authenticated the user. Then decrypt them. You can store them in your litecode server's resources, so long as your web server is not compromised.
- ISharedClass - the shared class interface is just that - an interface that defines the functions that your shared client<->server class will contain. (It must be the same in both projects. Contains no actual code.)
- SharedClass - the actual shared class that contains the sensitive code. (Only in server for obvious reasons.
Client
- Client - your main application. It will connect to your server with a static username/password combination. I suggest not hardcoding these, rather, retrieve them from your webserver after a pre-authentication of your choosing (eg. Servatrix, NetSeal).
- ClientProps - class where you define your server's IP Address, among other properties.
Server
- Server - your server application. It will handle and authenticate connections from your client with your static username/password, as well as your private key(s).
- ServerProps - the same as ClientProps, but properties for your server.
Example Project (C#)
https://github.com/debug-hf/LiteCode-Example
https://github.com/AnguisCaptor/LiteCode
https://github.com/AnguisCaptor/SecureSocketProtocol
Project Explanation
Sorry the volume is a bit low.
I plan to update this with pictures and all later, but right now this is all I have time for. Paruse the source, it's pretty straight forward. If you have any questions let me know.
Hope this helps secure your applications.
Enjoy!
All credits to LiteCode and SecureSocketProtocol goes to DragonHunter



![[Image: giphy.gif?cid=790b7611b007c1bdd2cd47171b...y.gif&ct=g]](https://media2.giphy.com/media/q7tD3eB8gRXumzbfvS/giphy.gif?cid=790b7611b007c1bdd2cd47171b9e37dc1125057dcbd235e0&rid=giphy.gif&ct=g)

![[Image: PVoDiqS.png]](https://i.imgur.com/PVoDiqS.png)