4 ms·
Funny, but I've actually had to build stubs like this to test crypto stuff. In the case I was dealing with, we had to produce an encrypted string that met the
by ShabbyDoo 17y ago
Funny, but I've actually had to build stubs like this to test crypto stuff. In the case I was dealing with, we had to produce an encrypted string that met the requirements of another system, and I wanted reproducible test cases to show that our code was correct. We were pretty sure that Java crypto libs were not broken, but the legacy system had some "features" that required us to DOUBLE Base64 encode our output and other such niceties.