Unable to read encrypted email address - encryption

I am trying to pass encrypted email address in my robot framework but i keep getting the below error. How do i fix this?
ValueError: Send Message failed: {"'crypt:\Cryptedvalue'": (553, b"5.1.3 The recipient address <'address'\n5.1.3 'some value'='> is not a valid\n5.1.3 RFC-5321 address. Learn more at\n5.1.3 https://support.google.com/mail/answer/6596 g9-20020a05620a108900b0067b13036bd5sm5495282qkk.52 - gsmtp")}

Programming is like Excel. Start backwards.
Were you able to insert the email address without the encryption first?
Then use an easier encryption or try to create the insertion using code conversion without encrypting the code conversion like using a binary file.
Then use the base encryption, a popular encryption (md5), and then move on to your desired encryption SHA -.

Related

Chilkat - Encode into PKCS7 the following elements : XML Signed Document + Signature certificate itself encoded X509

We are trying to automate certain processes with Chilkat.
In particular we are trying to generate a PKCS7 document that contains the following features:
A signed xml document. This signing is done via smartcard and the
output must include the signature. For this point, we are using the
crypt2 object with :
EncodingMode, HashAlgorithm and charset attributes
SetSigningCert, OpaqueSignStringENC methods
We need also to include the signer's digital signature certificate in X.509 ASN encoding.
This second point is where we are having some problems.
We have obtained a valid signed document according to the 2 points through the createp7m method for manual testing but the point of our program is to automate the process in memory. Therefore, we are trying to use the OpaqueSignStringENC("original xml to sign") but we believe the point (2) is not being taken into account.
I don't know if anyone has encountered a similar problem. I just recently started working with encryption, certificates...sorry if I am explaining myself incorrectly.
Thanks everyone for your help and time

Decrypt in Snowflake using Unix command

I am facing an issue where I have to decrypt a db column in Snowflake.The transformation to decrypt the column is a unix command.How do I achieve this decryption in Snowflake.
If you have a row with normal data and one column that is encrypted, and
are not prepared to decrypt the column prior to loading the data into Snowflake
you are also not prepared to decrypt the column after returning result rows from Snowflake via a query.
Then point 2 would imply you ether cannot decrypt client side, OR you need the results to do some form of JOIN/Filtering on, that it would make sense to store the data non-encrypted.
When you refer to decrypt as a command line tool, implies to you are ether encrypting the whole file/pipe-stream with does not match your column reference.
But if you have to decrypt in Snowflake you will need to implement a Javascript UDF to do that. You might find the Using Binary Data doc's helpful.
You can't run unix commands in the Snowflake environment.
If you can't do client side decryption on the way in or out, you have to figure out what the unix command actually does and hopefully you will be able to recreate it using the Cryptographic/Checksum functions.

Multiple property encryption using jasypt encryption

I have relatively less idea about encryption but i have done research on encryption in spring boot in application.properties file but i have not found any material based on multiple password encryption.If someone could provide some material or some direction as to how i would proceed will be helpful
Basically you got to do 3 things.
1. Encrypt your password using jasypt.This can be done using command line tool as indicated here or using a simple java program as indicated here. You need a password along with the string you need to encrypt. password is something like a secret key(or salt) which is used to encrypt the string you want to encrypt.
2. Add this to your application properties or yml jasypt.encryptor.password=password_used_in_the_previous_step
3. And add the encrypted password you got from step 1 like this ENC(Your_Encrypted_Password)
Add the necessary dependencies.
Here is a good example.
https://github.com/ulisesbocchio/jasypt-spring-boot.

How to convert encrypted outlook msg file to smime.p7m in c# and vice versa?

I am using Microsoft.Office.Interop.Outlook to process a pst file. But there are some encrypted emails because of which I am not being able to open it.
I am using EWS for synching exchange emails and I noticed that encrypted emails are shown as smime.p7m attachments.
So I was wondering how OWA gets smime.p7m format for the msg file??
And also is there a way to convert smime.p7m file to outook msg file?
Thanks
Outlook Object Model always represents signed/encrypted messages as regular IPM.Note MailItem objects.
To get to the underlying p7m attachment, you can either use Extended MAPI (C++ or Delphi only) or Redemption (any language - I am its author) - it exposes the RDOEncryptedMessage object.

Decrypting an encrypted text file generated using PL/SQL, encryption type AES256/CBC/PKCS5

I generated a text file, obtaining data from columns in a table. I have then encrypted that data using PL/SQL and encryption type of AES256/CBC/PKCS5.
I now need a program for the end user to use to decrypt that text file without needing to have oracle installed. (I know the solution of how to do it in Oracle, but the end user would not have Oracle installed)
So if you know of a good program, please post.
Ryan
Export to an accessible format before you encrypt.

Resources