@opentdf/ctl

0.1.0-beta.1701 • Public • Published

OpenTDF command line tool (for node)

A sample application using node & ESM to import and test a project

Usage

opentdf.mjs <auth options> <policy options> [encrypt|decrypt] [input file]

Sample round trip execution:

echo hello-world >sample.txt
bin/opentdf.mjs encrypt \
  --kasEndpoint http://localhost:65432/api/kas \
  --oidcEndpoint http://localhost:65432/auth/realms/tdf \
  --auth tdf-client:123-456 \
  --containerType tdf3 \
  --output sample.tdf \
  sample.txt
bin/opentdf.mjs \
  --kasEndpoint http://localhost:65432/api/kas \
  --oidcEndpoint http://localhost:65432/auth/realms/tdf \
  --auth tdf-client:123-456 \
  --containerType tdf3 \
  --userId alice@somewhere.there \
  decrypt sample.tdf

References

Readme

Keywords

none

Package Sidebar

Install

npm i @opentdf/ctl

Weekly Downloads

4

Version

0.1.0-beta.1701

License

BSD-3-Clause-Clear

Unpacked Size

47.9 kB

Total Files

6

Last publish

Collaborators

  • pflynn-virtru
  • the_krakatoa
  • virtru-admin
  • opentdf-bot