I am trying to run Node.js app from jenkins which takes a backup of our API management platform. When we get a backup on jenkins server, we have below directories - Backup
├── apps
├── secretes
│ ├── abc
│ ├── pqr
│ └── xyz
└─ devs
There are directories in secrets like abc, pqr, xyz which store some .txt files in it which has confidential data.
I want to encrypt all files present in the secretes directory before creating a zip and placing it in backup storage location. Any encryption method will work for me.