Skip to content

Command line tool for sealing files with Cryptowerk API

License

Notifications You must be signed in to change notification settings

cryptowerk/cealr

Repository files navigation

cealr

Command line tool for sealing files with the Cryptowerk Blockchain Enablement Kit API

Pre-Requisites:

Fedora/Ubuntu name

When building on a Mac, use this:

$ brew install cmake
$ brew install openssl
$ brew install gpgme

Building:

$ mkdir -p build/debug
$ (cd build/debug && cmake ../..)
$ cmake --build build/debug

On MAC in case OpenSSL has not been found:

$ (cd build/debug && cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl ../..)

Usage

Verifying a registered file

$ ./cealr filetoseal.cpp

A file with the same hash as "filetoseal.cpp" has been registered with Cryptowerk 1 time(s).
Details:

User registration:

You need to have an account with cryptowerk.com to seal a file. One way to register is using the option --register with cealr

Please don't use this option if you already have a Cryptowerk account. It will delete the API key and API credential stored for your current user on your current system (~/.cealr/config.properties).

$ ./cealr --register
 
Please enter your email address..................: [email protected]
Please enter your first name.....................: John
Please enter your last name......................: Smith
Please enter your organization (if applicable)...: 
 
Contacting server for registration"https://devapi1.cryptowerk.com/platform"
 
You are now registered with our server "https://devapi1.cryptowerk.com/platform".
An email has been sent to your account "[email protected]".
Please follow the instructions in this email to choose your password and
to activate your account.
After account activation you will be able to use the cealr command line tool to 
seal files for proof of existence.

Please look in your email account for the registration email and follow the link to set your password. You will need this password when you seal a file for the first time after registration.

Seal a file:

For sealing you need the API Key and API Credential for your Cryptowerk account. There are multiple ways to provide cealr with your API credentials.

You may use option --seal if you just registered an account (e.g. with option --register) and you already set your password. If you have not yet set your password, find the registration email that Cryptowerk sent to you and follow the registration URL.

$ ./cealr --seal filetoseal.cpp

Please enter the password for your Cryptowerk account "[email protected]" 
 
File "filetoseal.cpp" is successfully registered with Cryptowerk.

This works only if you did not use your credentials already e.g. you are using the same account for sealing files on a second system or you can see your credentials one time in the portal if you are logged in there.

About

Command line tool for sealing files with Cryptowerk API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages