1
0
Fork 0
mirror of https://github.com/HACKERALERT/Picocrypt.git synced 2024-12-30 19:32:33 +00:00
Picocrypt/src
2021-11-01 16:49:12 -04:00
..
snap/gui Bump version 2021-10-27 19:00:42 -04:00
unstable Improvements 2021-11-01 16:49:12 -04:00
font.ttf Prepare for v1.18 2021-09-24 20:29:22 -04:00
go.mod Add files via upload 2021-10-27 18:58:06 -04:00
go.sum Add files via upload 2021-10-27 18:58:06 -04:00
icon.png Prepare for v1.18 2021-09-24 20:29:22 -04:00
Picocrypt.go Use custom fork for safety and stability 2021-10-27 18:58:37 -04:00
README.md Revert "Merge pull request #44 from Zacho2/simplify-build" 2021-09-28 20:35:06 -04:00
sdelete64.exe Prepare for v1.18 2021-09-24 20:29:22 -04:00
snapcraft.yaml Bump version 2021-10-27 19:00:25 -04:00
strings.json Add files via upload 2021-09-26 13:33:30 -04:00

Running From Source

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. All you need is ten minutes and an Internet connection.

1. Prerequisites

Linux:

apt install -y gcc make libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libxxf86vm-dev libgtk-3-dev xdg-utils libglu1-mesa xclip coreutils

macOS:

xcode-select --install

Windows: A C compiler, ideally TDM-GCC

2. Install the Go Programming Language

If you don't have Go installed, download the corresponding installer for Go from here, or from your package manager. The latest version of Go is required.

3. Get the Source Files

Download the source files as a zip from the homepage or git clone this repository.

4. If You're Not on Windows...

Windows requires a couple of extra lines to hide the command prompt window that shows when shredding a file. If you're not on Windows, however, you'll need to delete all occurrences of this line: cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}. You'll also need to remove the import of syscall.

5. Build From Source

Finally, build Picocrypt from source:

  • Windows: go build -ldflags "-s -w -H=windowsgui -extldflags=-static" Picocrypt.go
  • macOS: go build -ldflags "-s -w" Picocrypt.go
  • Linux: go build -ldflags "-s -w" Picocrypt.go

6. Done!

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!