Compare commits

...

4 Commits

Author SHA1 Message Date
Evan Su 739f10bbe5
Create .gitattributes 2023-08-06 00:07:46 -04:00
Evan Su 97fa47346d
Add web interface to CodeQL 2023-08-06 00:03:12 -04:00
Evan Su b3b5157977
Update web interface description 2023-08-05 23:10:35 -04:00
Evan Su fdd03d4ce4
Add guide for compiling the web interface 2023-08-05 23:08:06 -04:00
4 changed files with 11 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
web/* linguist-vendored

View File

@ -8,6 +8,9 @@ on:
- "cli/picocrypt/*.go"
- "cli/picocrypt/go.mod"
- "cli/picocrypt/go.sum"
- "web/*.go"
- "web/go.mod"
- "web/go.sum"
pull_request:
branches: [ main ]
jobs:

View File

@ -25,7 +25,7 @@ Picocrypt for macOS is very simple as well. Download Picocrypt <a href="https://
To use Picocrypt on Linux, you can download the AppImage <a href="https://github.com/HACKERALERT/Picocrypt/releases/download/1.33/Picocrypt.AppImage">here</a>. While this AppImage should work on most systems, Linux is a mess when it comes to cross-distro and cross-release compatibility, so if the AppImage doesn't work, you can try the <a href="https://snapcraft.io/picocrypt">Snap</a>, run Picocrypt through Wine, or compile from source using the instructions in the `src/` directory.
## Web
A web interface for Picocrypt is available <a href="https://picocrypt.pages.dev/">here</a>, allowing you to use a lite version of Picocrypt on any device. Keep in mind that its functionality is very limited and you won't be able to use any advanced features. It is also quite slow compared to the native app.
A web interface for Picocrypt is available <a href="https://picocrypt.pages.dev/">here</a>, allowing you to use a lite version of Picocrypt on any device. Keep in mind that its functionality is very limited and you won't be able to use any advanced features or encrypt large files. It is also quite slow compared to the native app.
## CLI
A command-line interface is available for Picocrypt <a href="/cli">here</a>. Keep in mind that the functionality is extremely limited and is not meant to replace the standard GUI app. Rather, it's best suited for environments where the GUI won't run or you need the ability to automate encryption workflows.

6
web/README.md vendored Normal file
View File

@ -0,0 +1,6 @@
# Compiling
To build the web interface from source, you will need to compile the Go code into a WebAssembly file:
```
GOOS=js GOARCH=wasm go build -ldflags="-s -w" index.go
```
This will create a binary file. Compress it with [LZMA](https://github.com/LZMA-JS/LZMA-JS), encode it in Base64, and paste the final result to [L198](https://github.com/HACKERALERT/Picocrypt/blob/main/web/index.html#L198).