Encrypt a pass with Public Key in "Sign in" mode of Crytpo NODE

Describe the issue/error/question

Im trying to encrypt a password with a “Public Key” (not Private key) with Cryto Node using “Sigin Mode” but is only available Private Key option…

What is the error message (if any)?

Common error, the Crypto node, doesn’t support a Public Key option.

n8n version: latest from current day.

Hey @MGD,

From what I remember you can’t sign with a public key, the idea of signing is only one source can do it and the public key is used to verify the signature.

This is the opposite way when encrypting which will use the public key to encrypt and the private key to read.

1 Like

Ok, i think you are right, but my API works in that way… It sends me a Public Key and i need to encrypt a pass with this data…

Hey @MGD,

Encrypting with a public key makes more sense, At the moment our Crypto doesn’t support encrypting data so you would need to look at using the code node instead.

If it is a password though are you sure it wants the value encrypted and not hashed? Do you happen to have any links to the API docs?