sz_cgo_encrypt_plugin

command module
v0.0.0-...-b53fded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

sz_cgo_encrypt_plugin

An attempt at building a Senzing encryption plugin with CGo. It seems to work and just needs some real encryption code put in it.

./buildit.sh

Yes, I haven't done a real make system.

Then add it to your LD_LIBRARY_PATH and add the appropriate configuration to your Senzing JSON config on your init call. {"DATA_ENCRYPTION":{"ENCRYPTION_PLUGIN_NAME":"sz_cgo_dummy_plugin"}}

If your encryption returns something that is UTF-8/ASCII encoded then you can make that: {"DATA_ENCRYPTION":{"ENCRYPTION_PLUGIN_NAME":"sz_cgo_dummy_plugin","BASE64_ENCODING":"N"}}

To write your own plugin:
  • clone/fork/copy this repository
  • copy encrypt_dummy.go to a sensible name and implement the functions in it
  • change the build so it uses your new file instead of the dummy one and give the output library a sensible name that follows lib*.so format
  • change your Senzing configuration based on the new name

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL