Avro files are coming from source as flowfiles in Apache Nifi and i want to fetch 'Password' column and hash it with 'SHA2-256' and give it as an output flowfile and finally put it in AWS s3.
Asked
Active
Viewed 306 times
1 Answers
0
- You can modify the content of an individual "column" of Avro data (or any record format in NiFi) with the
UpdateRecord
processor. - You should not be doing this. SHA-256 is a cryptographic hash function but it is not designed for nor safe for "password hashing". Taking passwords, running them through a single SHA-256 digest function, and putting them on an S3 bucket is a very bad and very unsafe idea. Do not do it. Research how password hashing works before implementing any password protection.

Andy
- 13,916
- 1
- 36
- 78