Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

CLI client

Winni Neessen edited this page Feb 24, 2020 · 1 revision

fastcry.pt CLI client

fastcry.pt ships with a little CLI client script, that can be used to send files directly from your UNIX shell. The script can be found in the client/ directory and is called fastcrypt.pl.

Requirements

As Mojolicious ships with an awesome User Agent suite, you have to have Mojo::UserAgent installed to use the client.

Usage

The usage of the client is fairly simple. There are 3 parameters:

  • -f <filename>
    
    defines which file should be uploaded. This option is mandatory.
  • -d
    
    enables debug output to STDERR. Can be handy when troubleshooting.
  • -h
    
    shows a brief "Usage" message

Output

The output is similar to the webinterface response. After a successful upload, you will be presented with the decryption URL, the Password and a combination of decyption URL and Password in a single URL.

Example

Upload image.png to fastcry.pt:

#!bash
$ cd client && ./fastcrypt.pl -f ~/image.png 
Decryption URL:         https://fastcry.pt/d/ea429f56-04bc-11e7-ba93-50465d9ff6a0
Decryption Password:    CWC49GaSeuaMthz
Decryption URL/PW:      https://fastcry.pt/d/ea429f56-04bc-11e7-ba93-50465d9ff6a0?fastcrypt_pass=CWC49GaSeuaMthz

Caveat

fastcrypt.pl does not support self-supplied passwords (yet).

Clone this wiki locally