It was introduced in IOS versions 15.3(3)M/15.3(3)S for the username and 15.3(3)M3/15.5(1)S for the enable. And it is hashing and not encryption, a big difference from a cryptographic view.
--
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.