Simple way to encode and decode a string according to a password?

Hello everyone,
Does Processing have built-in functions, libraries or a simple way of encoding/decoding strings using a password?

Something like this:

encode('My String', password = 'mypass')  //'ajdnfladfa739adl23'
decode('ajdnfladfa739adl23', password = 'mypass') // 'My String'

Thanks

1 Like

This looks cool, Iā€™m interesting to know this answer too. Anyone?