Facing issue while trying to decrypt password using PBE(PBEWITHSHA1ANDDESEDE) - encryption

I have created a jar for encryption using PBE(PBEWITHSHA1ANDDESEDE) algorithm with Jasypt jar file.
Creating encrypt password using this jar file on unix environment but when I am trying to decrypt that password in my local environment (Windows PC) it is throwing error. But when I am encrypting password in my local then same encrypt password I am able to decrypt in my local PC.
I am using jasypt jar file using "PBEWITHSHA1ANDDESEDE" algorithm. Please let me know, is there any environment dependency there in encryption and decryption logic like those password encrypted in unix env can not be decrypted in Windows environment ?

Related

Does Airflow support SFTP operation using PGP encryption?

I am working on a project that requires me to share a text file through SFTP and use only PGP encryption. We are currently using Airflow for scheduling. I would like to know whether Airflow supports SFTP using PGP encryption. I could only see that it was using the SSH RSA key in the documentation of SFTPOperator. Does Airflow support SFTP use PGP encryption?

How to encrypt file on disk with ASC public key file using PGP encryption on Windows

I was told by my client that I need to encrypt a file using PGP with their public ASC key file they sent me. How can I do with WinSCP or another command line utility on Windows Server. I upload via SFTP SSH after I encrypt, but I need to encrypt file before sending to FTP server.

Encrypting passwords in collectd config

I have looked everywhere and couldn't find any way of encrypting passwords in the collectd.conf file.
Right now I have a collectd config file with the Postgres plugin install and loaded, it requires the connection credentials for each database I'm querying.
This means right now i have the password saved in cleartext in the configuration file.
is there any way to encrypt/hash the passwords in the config file, or even encrypt the entire file(but still make collectd work with it)
EDIT: im working on a linux server (rhel 7.4, using collectd 5.8.0)

How to encrypt connection string without using ASP.net

I created a windows library to do data reading from files and some custom filter, append, remove, update data towards my database on SQL Server. And my library requires app config which needs to put in connection string, because this library actually connects with more than 1 database.
If i were to deploy to my database server, i would need to do encryption to my connection string for security purpose. I have read a lot of discussion in stack overflow, but most of them are using RsaProtectedConfigurationProvider which requires my database server to have IIS server to do decryption. But the case is my database server don't add in the IIS on windows component as it will requires opening a new port which means open a new thread towards the server.
So my challenge right now is to do encryption of my app config without using any of ASP.net encryption tools. Is there any other way for me to do the encryption?

encrypting connectionstrings on production server

I have encrypted production connectionstring in webconfig on my development machine, and pushed it to production server. When running production application, getting Bad Data error while asp.net decrypting at server when connecting to database.
What wrong am I doing here?
Are you using RSA or DPAPI to encrypt? DPAPI is not built for encrypting on one machine and moving to another.
For RSA, you must be sure that the target production servers have a non-default and duplicated RSA encryption key on all target servers.
See this link for more information.

Resources