Entries in the libtcl.cfg file are in human-readable format. SAP provides a pwdcrypt utility for basic password encryption.
pwdcrypt is a simple algorithm that, when applied to keyboard input, generates an encrypted value that can be substituted for the password. pwdcrypt is located in $SYBASE/$SYBASE_OCS/bin.