Encode datas

Is there some function in Delphi that allow to encode datas before
puting then in a database ?

Thank you for you help.

Jean-Michel.