I would like to create a smart contract that would be able to decrypt some symmetrically encrypted message.

Here is the scenario:

  • Party "A" sends a message encrypted with key "123456" to VerifierContract
  • Party "B" sends a plain message with key "123456" to VerifierContract
  • VerifierContract decrypts "A" message using the key from "B".
  • if decrypted message is equal to "B" plain message, then VerifierContract takes action.

Does it make sense?


Don't really get what you're trying to build but here's the cryptoapi.

Not the answer you're looking for? Browse other questions tagged or ask your own question.