mirror of https://github.com/apache/nifi.git
f83e6d33c5
Added logic and test resources to debug JCE unlimited strength cryptography policy issues and incorporated into processor property validation. Excluded test resources from RAT check Added KeyDerivationFunction enum. Added kdf property in EncryptContent processor and provided to PasswordBasedEncryptor. Added logic in PasswordBasedEncryptor to handle variable KDF. Added unit tests for EncryptContent processor. Added test resources and excluded from RAT check. plain.txt: This is a plaintext message. 0s @ 12:20:32 $ openssl enc -aes-256-cbc -e -in plain.txt -out salted_raw.enc -k thisIsABadPassword -p salt=31DC301A6C7B8A0B key=CB878A6E167A5B530B8F2BD175E6359E3092AFF7C83274A22A5B421D79E599AC iv =0C614A72FC06B454B84E035B3FA8F877 0s @ 12:20:44 $ xxd salted_raw.enc 0000000: 5361 6c74 6564 5f5f 31dc 301a 6c7b 8a0b Salted__1.0.l{.. 0000010: 616b c65d f767 504d c085 ba7a c517 d0cb ak.].gPM...z.... 0000020: 7832 211e f573 b6f1 ded2 8f59 88e8 088f x2!..s.....Y.... 0s @ 20:14:00 $ openssl enc -aes-256-cbc -e -in plain.txt -out unsalted_raw.enc -k thisIsABadPassword -p -nosalt key=711E85689CE7AFF6F410AEA43ABC5446842F685B84879B2E00F977C22B9E9A7D iv =0C90ABF8ECE84B92BAA2CD448EC760F0 0s @ 20:14:17 $ xxd unsalted_raw.enc 0000000: 70cd 2984 fdbb 0e7c c01b 7206 88b1 6b50 p.)....|..r...kP 0000010: 5eeb e4f3 4036 773b 00ce dd8e 85d8 f90a ^...@6w;........ This closes #140 Signed-off-by: Aldrin Piri <aldrin@apache.org> |
||
---|---|---|
.. | ||
nifi-data-provenance-utils | ||
nifi-expression-language | ||
nifi-flowfile-packager | ||
nifi-hl7-query-language | ||
nifi-logging-utils | ||
nifi-processor-utilities | ||
nifi-properties | ||
nifi-security-utils | ||
nifi-site-to-site-client | ||
nifi-socket-utils | ||
nifi-utils | ||
nifi-web-utils | ||
nifi-write-ahead-log | ||
pom.xml |