Thank you Mark, now I'll check carefully your code to learn from it, I will also check the part concerning bitXor. Saludos and thanks again to every body in the list, hope this series of post help the people interestend in base conversions and encrypting. Javier Miranda V.