Is there anything that is secure enough to generate encryption codes?
Random generator in processing most like relies on what Java language offers, but then again you can use external Java libraries and I’m sure there exists random generators that are good enough.
Example used in Processing (from web site above):
You can use the SHA-1 or SHA-256 hashing algorithms. I used these when encrypting images in my Steganos library.
I gave some detail of it use in this discussion