Bootstrap FreeKB - RabbitMQ - Decrypt value using the rabbitmqctl decode command
RabbitMQ - Decrypt value using the rabbitmqctl decode command

Updated:   |  RabbitMQ articles

Let's say you used the rabbitmqctl encode command to create an encrypted value. In this example, the string "foo" is encoded, using 'bar' as the passphrase for the encoded string.

rabbitmqctl encode foo bar

 

Something like this should be returned.

Encrypting value ...
{encrypted,<<"T/pCGSrOlDkpnBvUA6mOPe2aTj8UMDZKtB9FIgm0r6ql8QgroXQkaEnejuRNrKms">>}

 

The rabbitmqctl decode command can be used to decode an encrytped string.

rabbitmqctl decode '<<"T/pCGSrOlDkpnBvUA6mOPe2aTj8UMDZKtB9FIgm0r6ql8QgroXQkaEnejuRNrKms">>' bar

 

Which should return the following.

Decrypting value ...
foo

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 3b32d8 in the box below so that we can be sure you are a human.