Modern cryptography techniques, such as symmetric ciphers, depend heavily on substitution boxes. Enhancing defenses against attacks such as confusing cryptographic algorithms and differential and linear cryptanalysis is crucial. An encryption method to encrypt data is presented in this article. With the use of elliptic curves (ECs), a substitution box with strong cryptographic characteristics is produced. Then, a number of analyses are carried out on the S-box, encompassing the bit independence criterion, strict avalanche criterion, nonlinearity, and probability for linear and differential approximations. This study is also evaluated the image encryption approach.