Recover a datasource password in ColdFusion

by 7:21 PM 5 comments
I forgot a password to a mySQL datasource on my personal VPS. Not the end of the world I can log in to mySQL and reset it if I need but I knew these passwords were in new-datasource.xml in an encrypted format and was curious to see if I could decrypt that password. Turns out you can. I used this post as a staring point http://paulalkema.com/post.cfm/pull-a-list-of-all-coldfusion-datasources-along-with-username-and-passwords and while I was at it built this small app in case I need it in the future.

Paul Kukiel

Developer

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Curabitur blandit tempus porttitor. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.

5 comments:

  1. There is a problem with your link to the reference article.

    ReplyDelete
  2. Note this won't work if you provide a Password Seed in the Security section of the ColdFusion Administrator.

    ReplyDelete
  3. @Dale I fixed the link it did work but wasn't clickable.

    @Rob your correct if you use a seed it wont work but if you don't set the seed it will still work even on 9.01

    ReplyDelete
  4. Glad to hear my post was helpful to you. :)

    ReplyDelete