This article discusses the research of the stability of the RSA algorithm, under the conditions of analysis of various data. The values obtained from the control sequence are considered as a confidence interval. Optimization of the obtained values allows you to determine the values of a deviation from the key. Statistical values and graphs have also been obtained, which make it possible to analyze the application of this technique.