In data communications, a text is represented as a bit pattern ,a sequence of bits(0’s or 1’s).Different sets of bit patterns have been designed to represent text symbols .Each set is called a code ,and the process of representing symbols is called coding.In this paper a new codingmethod is proposed and in this method Move to front coding method is used. The result of applying the new coding method provides high complex code which can be employed for security purpose.Also look up table (s-boxes) is stored as a B+tree to provide efficient access and take less time in processing.