RAS encryption algorithm----C language implementation