Encryption methods using formal power series rings