added rand/randbytes/encode/decode/frombase64/tobase64/encrypt/decrypt functions