Using base64_encode in wordpress plugins

Is that legal now to use base64_encode function in wordpress plugin development to encode some elements data and put it inside a hidden input’s value ?

And how to check plugin code for submission on CodeCanyon?

Thanks for your help.