add erlang code to encrypt tea