Don't use the wrong function name
Use ECB instead of CBC

CBC uses a random initialization vector, which was making the results
nondeterministic. I think this could have also been fixed by using a
constant IV, but using ECB seems simpler and maybe faster.