1
0
Fork 0
mirror of https://github.com/HACKERALERT/Picocrypt.git synced 2024-12-30 19:32:33 +00:00
Picocrypt/src/README.md

34 lines
2.1 KiB
Markdown
Raw Normal View History

2021-08-07 23:14:35 +00:00
# Running From Source
2021-11-20 03:14:49 +00:00
If you would like to run Picocrypt from source, or an executable isn't available for your platform, you've come to the right place. Running from source is very simple, and I've made it even easier with these straightforward instructions. Unlike VeraCrypt, which requires complex build procedures, SDKs, and assemblers, Picocrypt can easily be compiled from source with only a Go and C compiler. All you need is ten minutes and an Internet connection.
2021-05-29 19:38:13 +00:00
2021-06-01 16:02:56 +00:00
# 1. Prerequisites
2021-12-31 16:53:25 +00:00
**Linux:**
```bash
2022-11-18 16:53:25 +00:00
apt install -y gcc xorg-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa
2021-05-29 19:38:13 +00:00
```
2021-12-31 16:53:25 +00:00
**macOS:**
2021-06-01 16:02:56 +00:00
```bash
2021-08-07 22:05:44 +00:00
xcode-select --install
2021-12-31 16:53:25 +00:00
brew install glfw glew
2021-06-01 16:02:56 +00:00
```
2022-08-28 03:34:37 +00:00
**Windows:** A C compiler, ideally TDM-GCC or MinGW-w64
2021-06-01 16:02:56 +00:00
2022-08-28 02:44:43 +00:00
# 2. Install Go
2022-12-25 18:32:27 +00:00
If you don't have Go installed, download it from <a href="https://go.dev/dl/">here</a> or install it from your package manager (`apt install golang-go`). The latest version of Go is recommended, although you may fall back to Go 1.19 should any issues arise in the future.
2021-06-01 16:02:56 +00:00
# 3. Get the Source Files
2022-09-05 21:19:04 +00:00
Download the source files as a zip from the homepage or `git clone` this repository. Next, navigate to the `src/` directory, where you will find the source file (`Picocrypt.go`). You will need this file, along with `go.mod` and `go.sum`, to compile Picocrypt.
2021-06-01 16:02:56 +00:00
2021-11-20 03:14:49 +00:00
# 4. Build From Source
Finally, build Picocrypt from source:
2022-03-19 17:09:03 +00:00
- Windows: <code>go build -ldflags="-s -w -H=windowsgui -extldflags=-static" Picocrypt.go</code>
- macOS: <code>go build -ldflags="-s -w" Picocrypt.go</code>
- Linux: <code>go build -ldflags="-s -w" Picocrypt.go</code>
2022-12-25 18:32:27 +00:00
Note: Make sure to set `CGO_ENABLED=1` if it isn't already.
2021-11-20 03:14:49 +00:00
# 5. Done!
2021-08-07 23:14:35 +00:00
You should now see a compiled executable (`Picocrypt.exe`/`Picocrypt`) in your directory. You can run it by double-clicking or executing it in your terminal. That wasn't too hard, right? Enjoy!
2022-09-05 21:19:04 +00:00
Note: On Linux, if hardware OpenGL isn't available, you can set `LIBGL_ALWAYS_SOFTWARE=1` to force Mesa to use software rendering. This way, Picocrypt will be able to run regardless of driver support and can even run without a GPU at all. You may also need to set `NO_AT_BRIDGE=1` to disable the accessibility bus which is known to cause potential issues.