Coder Social home page Coder Social logo

hyperifyio / goselfshield Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15 KB

GoSelfShield securely embeds and deploys encrypted executables in Go, using passphrase-protected self-replacement for enhanced security.

License: Other

Makefile 3.41% Go 89.90% Shell 6.70%

goselfshield's Introduction

goselfshield

GoSelfShield securely embeds and deploys encrypted executables in Go, using passphrase-protected self-replacement for enhanced security.

Usage

Assume you have an unencrypted executable at ./my-executable.

With goselfshield, you can create an encrypted, self-executable installer:

goselfshield --private-key PASSPHRASE --output my-installer --source my-executable

After creation, you can distribute my-installer publicly.

To use the installer, your users need to know the passphrase used during its creation:

./my-installer --installer-private-key PASSPHRASE

Notes:

  • Omitting --installer-output causes the installer to replace itself and re-execute itself after successful unpacking.
  • Omitting --installer-private-key prompts the user to enter the passphrase from the command line.

Full example

$ goselfshield -output test-executable -source tmp/gomemory --private-key df0f56ae8e54c3e028d37f36d0eda121266bf49f4ef90d34873340b3175177d0
make: Nothing to be done for `all'.
Self-installer created: test-executable
$ ./test-executable --version
INSTALLER: Please enter your private key: df0f56ae8e54c3e028d37f36d0eda121266bf49f4ef90d34873340b3175177d0
INSTALLER: Decrypted to: /Users/jhh/git/hyperifyio/goselfshield/test-executable.tmp
INSTALLER: Backup made successfully to: /Users/jhh/git/hyperifyio/goselfshield/test-executable.bak
INSTALLER: Backup removed successfully.
HG's memory game v0.0.9 by Hangover Games <[email protected]>
URL = https://memory.hangover.games

goselfshield's People

Contributors

thejhh avatar

Watchers

 avatar  avatar

goselfshield's Issues

Backlog

Goal

The purpose of this issue is to track all unresolved issues within our project that have not been assigned to a specific project.

Bugs

  • Placeholder

Tasks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.