Skip to content

Instantly share code, notes, and snippets.

@matwey
Created October 21, 2020 16:19
Show Gist options
  • Save matwey/6ac8529361b840a937c50492924588cf to your computer and use it in GitHub Desktop.
Save matwey/6ac8529361b840a937c50492924588cf to your computer and use it in GitHub Desktop.
collectd aes256
#!/bin/sh
# PWD=$1
# PHASH=`echo -n ${PWD} | sha256sum`
PHASH=e126de2927862dfe24fb253ecf92ef17495d2a4adb052eeece7c48c674c42cc0
# Take from encrypted_data collectd frame
IV=97477cbe4a05f4577f20d124e7e02455
openssl enc -aes-256-ofb -d -K ${PHASH} -in data.raw -iv ${IV} > decoded.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment