How to include Crypto

Sean Hinde sean.hinde@REDACTED
Tue Dec 20 19:08:50 CET 2005


On 20 Dec 2005, at 17:40, Jing Ding wrote:

> To use this Crypto Module, in my ejabberd_auth_odbc.erl, what is  
> the syntax to include Crypto module? Or IO module? I didn't find  
> any example.

There is no special syntax to include a module. It will be loaded if  
required.

To call a function in a specific module the syntax is:

module:function(Args).

e.g.

erlang:md5("string").

or

crypto:md5("string").

Sean

>
> Thanks.
>
> Jing
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




More information about the erlang-questions mailing list