PARADIGMA BARU PENDIDIKAN MATEMATIKA DAN APLIKASI ONLINE INTERNET PEMBELAJARAN CONTACT: Marsidi, marsidiarin@gmail.com Department of Mathematics Education, Universitas PGRI Argopuro Jember, Indonesia The article can be accessed here. https://doi.org/10.15642/mantik.2022.8.2.78-88 Developing A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graph Marsidi Universitas PGRI Argopuro Jember, Indonesia Article history: Received Aug 8, 2022 Revised, Nov 9, 2022 Accepted, Nov 30, 2022 Kata Kunci: Graf siklus, pewarnaan pelangi titik anti ajaib, nilai pewarnaan pelangi titik anti ajaib, modifikasi Affine Cipher, kriptosistem. Abstrak. Pelabelan sisi pada graf ๐บ adalah fungsi ๐‘” dari himpunan sisi dari graf ๐บ ke bilangan asli pertama sampai dengan kardinalitas himpunan sisi. Graf ๐บ mempunyai pewarnaan pelangi titik anti ajaib jika untuk setiap dua titik terdapat suatu lintasan dengan warna berbeda dari semua titik dalam. Warna titik dari graf ๐บ ditentukan oleh bobot titik. Bobot titik pada graf ๐บ diperoleh dengan menjumlahkan semua label sisi yang terkait dengan simpul tersebut. Nilai pewarnaan pelangi titik anti ajaib dari graf ๐บ, dilambangkan dengan ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐บ) adalah jumlah minimum warna yang diinduksi oleh pewarnaan pelangi titik anti ajaib. Dalam makalah ini, kami menentukan batas atas nilai pewarnaan pelangi titik anti ajaib (๐‘Ÿ๐‘ฃ๐‘Ž๐‘) pada graf siklus (๐ถ๐‘›) dan mengembangkan modifikasi Affine Cipher dari pewarnaan pelangi titik anti ajaib untuk membuat kriptosistem yang aman. Keywords: Cycle graph, rainbow vertex antimagic coloring, rainbow vertex antimagic connection number, modified Affine Cipher, cryptosystem. Abstract. An edge labeling of graph ๐บ is a function ๐‘” from the edge set of graph ๐บ to the first natural numbers up to the number of the edge set. Graph ๐บ admits a rainbow vertex antimagic coloring if, for any two vertices, there is a path with different colors of all internal vertices. The vertex color of graph ๐บ is assigned by vertex weight. The vertex weight of graph ๐บ is obtained by summing all edge labels that incident with that vertex. The rainbow vertex antimagic connection number of graph ๐บ, denoted by ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐บ) is the smallest number of different colors induced by rainbow vertex antimagic coloring. In this research, we determine the upper bound of the rainbow vertex antimagic connection number (๐‘Ÿ๐‘ฃ๐‘Ž๐‘) on a cycle graph (๐ถ๐‘›) and create a secured cryptosystem using a modified Affine Cipher based on rainbow vertex antimagic coloring. How to cite: Marsidi, โ€œDeveloping A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graphโ€, J. Mat. Mantik, vol. 8, no. 2, pp. 78-88, October 2022 Jurnal Matematika MANTIK Vol. 8, No. 2, October 2022, 78-88 ISSN: 2527-3159 (print) 2527-3167 (online) mailto:sadiq.taha@uod.ac https://doi.org/10.15642/mantik.2021.7.1.9-19 http://u.lipi.go.id/1458103791 Marsidi Developing A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graph 79 1. Introduction Graph theory is one of the studies of mathematics that has applications in the field of mathematics. One of the popular graph theory studies is coloring theory. Coloring theory is developed from a Four-Color Theorem. The theorem states that each map can be colored using four colors, so that adjacent areas do not have the same color. The development of graph coloring theory covers vertex coloring, edge coloring, face coloring, ๐’“-dynamic coloring, and rainbow coloring. In this paper, we discuss rainbow vertex antimagic coloring which begins with the following definition. The graph that is discussed in this study is a simple and connected graph, definitively it can be seen in [1]. The concept of rainbow connection has several interesting variants, one of them is rainbow vertex-connection. It was introduced by Krivelevich and Yuster [2]. Let ๐บ be a graph and ๐‘: ๐‘‰(๐บ) โ†’ {1,2,โ‹ฏ,๐‘˜} be a vertex ๐‘˜- coloring, for some ๐‘˜ โˆˆ ๐‘. A path ๐‘ƒ in ๐บ with a vertex ๐‘˜-coloring is said to be a rainbow vertex-path, if all internal vertices of ๐‘ƒ have distinct colors. The graph ๐บ is said to be a rainbow vertex connected, if for any two vertices ๐‘ข and ๐‘ฃ in ๐‘‰(๐บ) there is a rainbow vertex-path. A vertex ๐‘˜-coloring of ๐บ is said rainbow vertex coloring, if ๐บ rainbow vertex connected under ๐‘. The rainbow vertex connection number, denoted by ๐‘Ÿ๐‘ฃ๐‘(๐บ), is the smallest positive integer k such that ๐บ has rainbow vertex k-coloring. Krivelevich and Yuster also gave the lower bound for a graph ๐บ, namely ๐‘Ÿ๐‘ฃ๐‘(๐บ) โ‰ฅ ๐‘‘๐‘–๐‘Ž๐‘š(๐บ) โ€“ 1, where ๐‘‘๐‘–๐‘Ž๐‘š(๐บ) is the diameter of the graph ๐บ [3]. Several other concepts as a result of developing the concept of rainbow vertex coloring can be seen in [4][5][6][7][8][9][10]. Septory et al. [11] developed rainbow coloring into rainbow antimagic coloring, while Marsidi et al. developed rainbow vertex coloring into rainbow vertex antimagic coloring. A formal definition related to rainbow vertex antimagic coloring can be seen in [12]. In this paper, we determine the upper bound of the rainbow vertex antimagic connection number of cycle graph (๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›)). Some other results on rainbow antimagic coloring of graphs can be seen in Antimagic labeling, rainbow coloring, rainbow antimagic coloring, and rainbow antimagic connection number[13][14]. Furthermore, we apply the concept of rainbow vertex antimagic coloring of graphs for developing a secured cryptosystem. Cryptography is a common approach for maintaining the secrecy of information dispersed across an insecure network [15]. A cryptosystem is a set of cryptographic algorithms used to implement a specific security service, such as confidentiality (encryption). The cryptosystem is a set of cryptographic techniques and infrastructure used to provide information security services. The cryptosystem is also known as a cipher system. The cryptosystem is typically formed by three algorithms: one for key generation, one for encryption, and one for decryption. The term cipher (or cypher) refers to a pair of algorithms, one for encryption and one for decryption. As a result, when the key generation algorithm is important, the term cryptosystem is most generally used. The term cryptosystem is commonly used to refer to public key techniques; however, for symmetric key techniques, both "cipher" and "cryptosystem" are used. The strength of cryptography protocols relies on the encryption-decryption keys management: how to protect the keys from disclose to unauthorized parties [16]. The Affine Cipher and rainbow vertex antimagic coloring concepts are combined in this article to form the modified Affine Cipher. The Affine Cipher is a monoalphabetic substitution cipher in which each letter of an alphabet is given a numeric representation, encrypted with a simple mathematical function, and then converted back to a letter. Because of the formula, each letter encrypts to and from another letter, implying that the cipher is basically a regular substitution cipher with a structured which letter goes to which. As a result, it suffers from the same issues as all substitution ciphers. Each letter is encoded using the function, where denotes the length of the shift. As encryption and Jurnal Matematika MANTIK Vol 8, No 2, October 2022, pp. 78-88 80 decryption keys, we use labeling of rainbow vertex antimagic coloring and rainbow vertex antimagic connection number. 2. Preliminaries In determining the exact value of rainbow vertex antimagic connection number of graph ๐บ (๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐บ)), a lower bound is needed. The lower bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐บ) has been found by Marsidi, et al. For more details see [12]. The lower bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐บ) that found by Marsidi, et al is as follows. Remark 1 [16] Let ๐บ be a connected graph, ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐บ) โ‰ฅ ๐‘Ÿ๐‘ฃ๐‘(๐บ). 2.1 Cryptosystem A simple model of a cryptographic system that ensures the confidentiality of transmitted data is illustrated in Figure 1. The illustration below depicts this fundamental model. Figure 1. Basic Model of Cryptosystem. Before the plaintext encryption process is carried out, it must be converted first with the Affine Cipher method. The plaintext conversion rules with Affine Cipher are presented in Table 1. Table 1. The Conversion Rules on Affine Cipher A B C D E F G H I J 0 1 2 3 4 5 6 7 8 9 K L M N O P Q R S T 10 11 12 13 14 15 16 17 18 19 U V W X Y Z 20 21 22 23 24 25 Components of a Cryptosystem The various components of a basic cryptosystem are as follows. a) Plaintext. It is the data that must be secured during transmission. b) Encryption Algorithm. Given a plaintext and an encryption key, it is a mathematical procedure that creates a ciphertext. It is a cryptographic technique that converts plaintext into ciphertext using an encryption key. Marsidi Developing A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graph 81 c) Ciphertext. It is the scrambled version of the plaintext generated by the encryption algorithm when a specific encryption key is used. d) Decryption Algorithm. It is a mathematical process that creates a unique plaintext for each ciphertext and decryption key combination. It is a cryptographic method that takes in ciphertext and a decryption key and outputs plaintext. Because it reverses the encryption technique, the decryption algorithm is closely related to it. e) Encryption Key. The sender knows what it is. The sender inserts the encryption key and plaintext into the encryption algorithm to generate the ciphertext. f) Decryption Key. To the receiver, it is a known value. The encryption key and the decryption key are related, but not always identical. The receiver inputs the decryption key and the ciphertext into the decryption algorithm to retrieve the plaintext. 2.2 Affine Cipher An ๐‘š-letter alphabet's letters are first mapped to integers in the range 0,โ‹ฏ,๐‘š โˆ’ 1. The number that corresponds to each plaintext letter is then converted into another integer that corresponds to a ciphertext letter using modular arithmetic. The encryption function of a single letter is ๐ธ(๐‘ฅ) = (๐‘Ž๐‘ฅ + ๐‘) mod ๐‘š where modulus ๐‘š is the alphabet size and ๐‘Ž and ๐‘ are the cipher keys. The value of ๐‘Ž must be chosen so that ๐‘Ž and ๐‘š are coprime. The decryption of a function is ๐ท(๐‘ฅ) = ๐‘Žโˆ’1(๐‘ฅ โˆ’ ๐‘) mod ๐‘š where ๐‘Žโˆ’1 is the modular multiplicative inverse of ๐‘Ž modulo ๐‘š. I.e., it satisfies the equation 1 = ๐‘Ž๐‘Žโˆ’1 mod ๐‘š The multiplicative inverse of ๐‘Ž exists if ๐‘Ž and ๐‘š are coprime. Without the constraint on ๐‘Ž, the decryption may be impossible. As shown below, the decryption function is the inverse of the encryption function. ๐ท(๐ธ(๐‘ฅ)) = ๐‘Žโˆ’1(๐ธ(๐‘ฅ) โˆ’ ๐‘) mod ๐‘š = ๐‘Žโˆ’1(((๐‘Ž(๐‘ฅ) + ๐‘) mod ๐‘š) โˆ’ ๐‘) ๐‘š๐‘œ๐‘‘ ๐‘š = ๐‘Žโˆ’1(๐‘Ž(๐‘ฅ) + ๐‘ โˆ’ ๐‘) mod ๐‘š = ๐‘Žโˆ’1๐‘Ž๐‘ฅ mod ๐‘š = ๐‘ฅ mod ๐‘š 3. Results and Discussion This research produces the upper bound of rainbow vertex antimagic connection number of cycle graph that has not been found by previous researchers, so the results of this study are new. In addition, researchers develop applications in cryptosystems that are encrypted and decrypted using the resulting rainbow vertex antimagic connection number of cycle graph. https://en.wikipedia.org/wiki/Modular_multiplicative_inverse https://en.wikipedia.org/wiki/Modular_arithmetic Jurnal Matematika MANTIK Vol 8, No 2, October 2022, pp. 78-88 82 3.1 Rainbow Vertex Antimagic Coloring of Cycle Graph Theorem 2 If ๐ถ๐‘› is a cycle graph with orders ๐‘› and ๐‘› โ‰ฅ 3, then ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) โ‰ค { ๐‘› 2 , ๐‘–๐‘“ ๐‘› โ‰ก 2(๐‘š๐‘œ๐‘‘ 4) ๐‘› 2 + 1, ๐‘–๐‘“ ๐‘› โ‰ก 0(๐‘š๐‘œ๐‘‘ 4) โŒŠ ๐‘› 2 โŒ‹ + 2, ๐‘–๐‘“ ๐‘› โ‰ก 1(๐‘š๐‘œ๐‘‘ 4) โŒŠ ๐‘› 2 โŒ‹ + 1, ๐‘–๐‘“ ๐‘› โ‰ก 3(๐‘š๐‘œ๐‘‘ 4) Proof. Let ๐ถ๐‘› be a cycle graph with vertex set ๐‘‰(๐ถ๐‘›) = {๐‘ฅ๐‘–:1 โ‰ค ๐‘– โ‰ค ๐‘›} and edge set ๐ธ(๐ถ๐‘›) = {๐‘’๐‘› = ๐‘ฅ1๐‘ฅ๐‘›; ๐‘’๐‘– = ๐‘ฅ๐‘–๐‘ฅ๐‘–+1:1 โ‰ค ๐‘– โ‰ค ๐‘› โˆ’ 1}. The diameter of ๐ถ๐‘› is โŒŠ ๐‘› 2 โŒ‹. We divide into four cases to prove the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) as follows. Case 1. For ๐‘› โ‰ก 2(๐‘š๐‘œ๐‘‘ 4) The edge labels in the following functions are constructed to illustrate the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›). For 1 โ‰ค ๐‘– โ‰ค ๐‘› 2 , we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ 1, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) 2๐‘–, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) For ๐‘› 2 + 1 โ‰ค ๐‘– โ‰ค ๐‘›, we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ ๐‘›, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) 2๐‘– โˆ’ ๐‘› โˆ’ 1, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) We have the following vertex weights based on the edge labels above. ๐‘ค(๐‘ฅ1) = ๐‘ค( ๐‘› 2 + 1) = ๐‘› + 1 ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 3:2 โ‰ค ๐‘– โ‰ค ๐‘› 2 ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 2๐‘› โˆ’ 3: ๐‘› 2 + 2 โ‰ค ๐‘– โ‰ค ๐‘› From the vertex weight above, we can determine the different weight in the Table 2. Table 2. The Different Weight on The Vertices of ๐ถ๐‘›. ๐’Š ๐’˜(๐’Š) ๐’Š ๐’˜(๐’Š) 1 ๐‘› + 1 ๐‘› 2 + 1 ๐‘› + 1 2 5 ๐‘› 2 + 2 5 3 9 ๐‘› 2 + 3 9 4 13 ๐‘› 2 + 4 13 5 17 ๐‘› 2 + 5 17 โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ ๐‘› 2 2๐‘› โˆ’ 3 ๐‘› 2๐‘› โˆ’ 3 Marsidi Developing A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graph 83 We know that the number of different weights of ๐ถ๐‘› is ๐‘› 2 . It concludes that the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) is ๐‘› 2 . Furthermore, we prove that every pair of ๐ถ๐‘› vertices have rainbow vertex antimagic coloring. Suppose that ๐‘ฃ โˆˆ ๐‘‰(๐ถ๐‘›), Table 3 shows the rainbow vertex path in accordance with the vertex weight. Table 3. The Path of Rainbow Vertex on Cycle of Order ๐‘›. Case ๐’– ๐’— Rainbow Vertex Coloring of ๐’– โˆ’ ๐’— Path ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– โ‰ค ๐‘› 2 ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘–,๐‘ฃ๐‘–+1,๐‘ฃ๐‘–+2, ๐‘ฃ๐‘–+3, โ‹ฏ,๐‘ฃ๐‘—โˆ’1, ๐‘ฃ๐‘— ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– > ๐‘› 2 ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘—,๐‘ฃ๐‘—+1 ,๐‘ฃ๐‘—+2,โ‹ฏ,๐‘ฃ๐‘› ,๐‘ฃ1,โ‹ฏ,๐‘ฃ๐‘– Case 2. For ๐‘› โ‰ก 0(๐‘š๐‘œ๐‘‘ 4) The edge labels in the following functions are constructed to illustrate the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›). For 1 โ‰ค ๐‘– โ‰ค ๐‘› 2 , we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ 1, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) 2๐‘–, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) For ๐‘› 2 + 1 โ‰ค ๐‘– โ‰ค ๐‘›, we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ ๐‘›, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) 2๐‘– โˆ’ ๐‘› โˆ’ 1, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) We have the following vertex weights based on the edge labels above. ๐‘ค(๐‘ฅ1) = ๐‘› ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 3:2 โ‰ค ๐‘– โ‰ค ๐‘› 2 ๐‘ค( ๐‘› 2 + 1) = ๐‘› + 2 ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 2๐‘› โˆ’ 3: ๐‘› 2 + 2 โ‰ค ๐‘– โ‰ค ๐‘› From the vertex weight above, we can determine the different weight in the Table 4. Table 4. The Different Weight on The Vertices of ๐ถ๐‘›. ๐’Š ๐’˜(๐’Š) ๐’Š ๐’˜(๐’Š) 1 ๐‘› ๐‘› 2 + 1 ๐‘› + 2 2 5 ๐‘› 2 + 2 5 3 9 ๐‘› 2 + 3 9 4 13 ๐‘› 2 + 4 13 5 17 ๐‘› 2 + 5 17 โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ ๐‘› 2 2๐‘› โˆ’ 3 ๐‘› 2๐‘› โˆ’ 3 Jurnal Matematika MANTIK Vol 8, No 2, October 2022, pp. 78-88 84 We know that the number of different weights of ๐ถ๐‘› is ๐‘› 2 + 1. It concludes that the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) is ๐‘› 2 + 1. Furthermore, we prove that every pair of ๐ถ๐‘› vertices have rainbow vertex antimagic coloring. Suppose that ๐‘ฃ โˆˆ ๐‘‰(๐ถ๐‘›), Table 5 shows the rainbow vertex path in accordance with the vertex weight. Table 5. The Path of Rainbow Vertex on Cycle of Order ๐‘›. Case ๐’– ๐’— Rainbow Vertex Coloring of ๐’– โˆ’ ๐’— Path ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– โ‰ค ๐‘› 2 ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘–,๐‘ฃ๐‘–+1,๐‘ฃ๐‘–+2, ๐‘ฃ๐‘–+3, โ‹ฏ,๐‘ฃ๐‘—โˆ’1, ๐‘ฃ๐‘— ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– > ๐‘› 2 ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘—,๐‘ฃ๐‘—+1 ,๐‘ฃ๐‘—+2,โ‹ฏ,๐‘ฃ๐‘› ,๐‘ฃ1,โ‹ฏ,๐‘ฃ๐‘– Case 3. For ๐‘› โ‰ก 1(๐‘š๐‘œ๐‘‘ 4) The edge labels in the following functions are constructed to illustrate the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›). For 1 โ‰ค ๐‘– โ‰ค โŒˆ ๐‘› 2 โŒ‰, we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ 1, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) 2๐‘–, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) ๐‘”(๐‘’ โŒˆ ๐‘› 2 โŒ‰ ) = ๐‘› For โŒˆ ๐‘› 2 โŒ‰ + 1 โ‰ค ๐‘– โ‰ค ๐‘›, we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ ๐‘› โˆ’ 1, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) 2๐‘– โˆ’ ๐‘› โˆ’ 2, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) We have the following vertex weights based on the edge labels above. ๐‘ค(๐‘ฅ1) = ๐‘› โˆ’ 1 ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 3:2 โ‰ค ๐‘– โ‰ค โŒˆ ๐‘› 2 โŒ‰ ๐‘ค(โŒˆ ๐‘› 2 โŒ‰ + 1) = ๐‘› + 2 ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 2๐‘› โˆ’ 5: โŒˆ ๐‘› 2 โŒ‰ + 2 โ‰ค ๐‘– โ‰ค ๐‘› From the vertex weight above, we can determine the different weight in the Table 6. Table 6. The Different Weight on The Vertices of ๐ถ๐‘›. ๐’Š ๐’˜(๐’Š) ๐’Š ๐’˜(๐’Š) 1 ๐‘›-1 โŒˆ ๐‘› 2 โŒ‰ + 1 ๐‘› + 2 2 5 โŒˆ ๐‘› 2 โŒ‰ + 2 5 3 9 โŒˆ ๐‘› 2 โŒ‰ + 3 9 4 13 โŒˆ ๐‘› 2 โŒ‰ + 4 13 5 17 โŒˆ ๐‘› 2 โŒ‰ + 5 17 โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โŒˆ ๐‘› 2 โŒ‰ 2๐‘› โˆ’ 1 ๐‘› 2๐‘› โˆ’ 5 Marsidi Developing A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graph 85 We know that the number of different weights of ๐ถ๐‘› is โŒŠ ๐‘› 2 โŒ‹ + 2. It concludes that the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) is โŒŠ ๐‘› 2 โŒ‹ + 2. Furthermore, we prove that every pair of ๐ถ๐‘› vertices have rainbow vertex antimagic coloring. Suppose that ๐‘ฃ โˆˆ ๐‘‰(๐ถ๐‘›), Table 7 shows the rainbow vertex path in accordance with the vertex weight. Table 7. The Path of Rainbow Vertex on Cycle of Order ๐‘›. Case ๐’– ๐’— Rainbow Vertex Coloring of ๐’– โˆ’ ๐’— Path ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– โ‰ค โŒˆ ๐‘› 2 โŒ‰ ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘–,๐‘ฃ๐‘–+1,๐‘ฃ๐‘–+2, ๐‘ฃ๐‘–+3, โ‹ฏ,๐‘ฃ๐‘—โˆ’1, ๐‘ฃ๐‘— ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– > โŒˆ ๐‘› 2 โŒ‰ ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘—,๐‘ฃ๐‘—+1 ,๐‘ฃ๐‘—+2,โ‹ฏ,๐‘ฃ๐‘› ,๐‘ฃ1,โ‹ฏ,๐‘ฃ๐‘– Case 4. For ๐‘› โ‰ก 3(๐‘š๐‘œ๐‘‘ 4) The edge labels in the following functions are constructed to illustrate the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›). For 1 โ‰ค ๐‘– โ‰ค โŒˆ ๐‘› 2 โŒ‰, we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ 1, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) 2๐‘–, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) ๐‘”(๐‘’ โŒˆ ๐‘› 2 โŒ‰ ) = ๐‘› For โŒˆ ๐‘› 2 โŒ‰ + 1 โ‰ค ๐‘– โ‰ค ๐‘›, we have ๐‘”(๐‘’๐‘–) = { 2๐‘– โˆ’ ๐‘› โˆ’ 1, ๐‘– โ‰ก 1(๐‘š๐‘œ๐‘‘ 2) 2๐‘– โˆ’ ๐‘› โˆ’ 2, ๐‘– โ‰ก 0(๐‘š๐‘œ๐‘‘ 2) We have the following vertex weights based on the edge labels above. ๐‘ค(๐‘ฅ1) = ๐‘› ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 3:2 โ‰ค ๐‘– โ‰ค โŒˆ ๐‘› 2 โŒ‰ โˆ’ 1 ๐‘ค(โŒˆ ๐‘› 2 โŒ‰) = 2๐‘› โˆ’ 2 ๐‘ค(โŒˆ ๐‘› 2 โŒ‰ + 1) = ๐‘› + 2 ๐‘ค(๐‘ฅ๐‘–) = 4๐‘– โˆ’ 2๐‘› โˆ’ 5: โŒˆ ๐‘› 2 โŒ‰ + 2 โ‰ค ๐‘– โ‰ค ๐‘› From the vertex weight above, we can determine the different weight in the Table 8. Table 8. The Different Weight on The Vertices of ๐ถ๐‘›. ๐’Š ๐’˜(๐’Š) ๐’Š ๐’˜(๐’Š) 1 ๐‘› โŒˆ ๐‘› 2 โŒ‰ + 1 ๐‘› + 2 2 5 โŒˆ ๐‘› 2 โŒ‰ + 2 5 3 9 โŒˆ ๐‘› 2 โŒ‰ + 3 9 4 13 โŒˆ ๐‘› 2 โŒ‰ + 4 13 5 17 โŒˆ ๐‘› 2 โŒ‰ + 5 17 โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โŒˆ ๐‘› 2 โŒ‰ 2๐‘› โˆ’ 2 ๐‘› 2๐‘› โˆ’ 5 Jurnal Matematika MANTIK Vol 8, No 2, October 2022, pp. 78-88 86 We know that the number of different weights of ๐ถ๐‘› is โŒŠ ๐‘› 2 โŒ‹ + 1. It concludes that the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) is โŒŠ ๐‘› 2 โŒ‹ + 1. Furthermore, we prove that every pair of ๐ถ๐‘› vertices have rainbow vertex antimagic coloring. Suppose that ๐‘ฃ โˆˆ ๐‘‰(๐ถ๐‘›), Table 9 shows the rainbow vertex path in accordance with the vertex weight. Table 9. The Path of Rainbow Vertex on Cycle of Order ๐‘›. Case ๐’– ๐’— Rainbow Vertex Coloring of ๐’– โˆ’ ๐’— Path ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– โ‰ค โŒˆ ๐‘› 2 โŒ‰ ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘–,๐‘ฃ๐‘–+1,๐‘ฃ๐‘–+2, ๐‘ฃ๐‘–+3, โ‹ฏ,๐‘ฃ๐‘—โˆ’1, ๐‘ฃ๐‘— ๐‘– < ๐‘—;๐‘— โˆ’ ๐‘– > โŒˆ ๐‘› 2 โŒ‰ ๐‘ฃ๐‘– ๐‘ฃ๐‘— ๐‘ฃ๐‘—,๐‘ฃ๐‘—+1 ,๐‘ฃ๐‘—+2,โ‹ฏ,๐‘ฃ๐‘› ,๐‘ฃ1,โ‹ฏ,๐‘ฃ๐‘– As a result, the vertex coloring on ๐ถ๐‘› is rainbow vertex antimagic coloring. Thus, we obtain ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›) โ‰ค { ๐‘› 2 , ๐‘–๐‘“ ๐‘› โ‰ก 2(๐‘š๐‘œ๐‘‘ 4) ๐‘› 2 + 1, ๐‘–๐‘“ ๐‘› โ‰ก 0(๐‘š๐‘œ๐‘‘ 4) โŒŠ ๐‘› 2 โŒ‹ + 2, ๐‘–๐‘“ ๐‘› โ‰ก 1(๐‘š๐‘œ๐‘‘ 4) โŒŠ ๐‘› 2 โŒ‹ + 1, ๐‘–๐‘“ ๐‘› โ‰ก 3(๐‘š๐‘œ๐‘‘ 4) . โˆŽ 3.2 Application The encryption and decryption process can implement the result of labeling and the chromatic number of rainbow vertex coloring, which is used as the key for the encryption and decryption process. We developed a new algorithm to generate encryption and decryption keys with rainbow vertex antimagic chromatic numbers and labels. Algorithm 1. Role of Extra Key a) Define ๐‘“ as the function of graph element labels of graph ๐บ. b) If ๐‘“ is a bijective function, do 3, and bring it back to 1 otherwise. c) Define ๐‘ as the rainbow vertex antimagic chromatic number. d) To use the vertex weight, define ๐‘ง๐‘– 1:1 โ‰ค ๐‘– โ‰ค ๐‘›, where ๐‘› is the number of vertexes. e) Add ๐‘ง๐‘– 1 and arrange the sequence according to the vertex notation ๐‘ฅ๐‘–: 1 โ‰ค ๐‘– โ‰ค ๐‘›, where ๐‘› is the number of vertices. f) To use the edge label, define ๐‘ง๐‘— 2:1 โ‰ค ๐‘— โ‰ค ๐‘š, where ๐‘š is the number of edges. g) Add ๐‘ง๐‘— 2 and arrange the sequence according to the edge notation ๐‘’๐‘—:1 โ‰ค ๐‘— โ‰ค ๐‘š. h) Set ๐‘˜ as element of the ๐‘ง๐‘– 1 and ๐‘ง๐‘— 2 sequence. In Algorithm 1, it will use the process of developing the key in the encryption and decryption process. Algorithm 2 developed the Affine Cipher based on the results of Algorithm 1, which includes an encryption and description process. Marsidi Developing A Secure Cryptosystem with Rainbow Vertex Antimagic Coloring of Cycle Graph 87 Algorithm 2. Modified Affine Cipher a) Given that the plaintext and its conversion with Affine Cipher ๐‘ƒ๐‘–: 1 โ‰ค ๐‘– โ‰ค ๐‘›. b) Compute the ciphertext using Equation 1 and compute the plaintext blocks using Equation 2. ฮฆ๐‘– = ((๐‘ƒ๐‘– + ๐พ1๐‘–) + ๐พ2๐‘–) ๐‘š๐‘œ๐‘‘ 26 (1) ๐‘ƒ๐‘– = ((ฮฆ๐‘– โˆ’ ๐พ2๐‘–) โˆ’ ๐พ1๐‘–) ๐‘š๐‘œ๐‘‘ 26 (2) where ๐‘ƒ๐‘–, ๐พ1๐‘–, ๐พ2๐‘–, and ฮฆ๐‘– are the ๐‘–-th of conversion plaintext, key sequence, and conversion ciphertext, respectively. Note that, for ๐‘› = 1, ฮฆ๐‘›โˆ’1 is a null vector. For an illustration how the algorithms are working, we give the following examples. Given that a plaintext ๐‘ƒ = ๐‘ˆ๐‘๐ผ๐‘ƒ๐ด๐‘…๐ฝ๐ธ๐‘€๐ต๐ธ๐‘…, by mean the two algorithms above we have a ciphertext ฮฆ = ๐ป๐‘Š๐‘Š๐พ๐ด๐‘Œ๐‘๐‘€๐ต๐‘‰๐น๐‘‹. The cryptosystem process can be described in the following tables. Table 9. Encryption process. Plaintext ๐‘ผ ๐‘ต ๐‘ฐ ๐‘ท ๐‘จ ๐‘น ๐‘ฑ ๐‘ฌ ๐‘ด ๐‘ฉ ๐‘ฌ ๐‘น ๐‘ƒ๐‘– 20 13 8 15 0 17 9 4 12 1 4 17 ๐พ1๐‘– 12 5 9 13 17 21 14 5 9 13 17 21 ๐‘ƒ๐‘– + ๐พ1๐‘– 32 18 17 28 17 38 23 9 21 14 21 38 ๐พ2๐‘– 1 4 5 8 9 12 2 3 6 7 10 11 (๐‘ƒ๐‘– + ๐พ1๐‘–) + ๐พ2๐‘– 33 22 22 36 26 50 25 12 27 21 31 49 ฮฆ๐‘– 7 22 22 10 0 24 25 12 1 21 5 23 Ciphertext ๐‘ฏ ๐‘พ ๐‘พ ๐‘ฒ ๐‘จ ๐’€ ๐’ ๐‘ด ๐‘ฉ ๐‘ฝ ๐‘ญ X Table 10. Decryption process. Ciphertext ๐‘ฏ ๐‘พ ๐‘พ ๐‘ฒ ๐‘จ ๐’€ ๐’ ๐‘ด ๐‘ฉ ๐‘ฝ ๐‘ญ X ฮฆ๐‘– 7 22 22 10 0 24 25 12 1 21 5 23 ๐พ2๐‘– 1 4 5 8 9 12 2 3 6 7 10 11 ฮฆ๐‘– โˆ’ ๐พ2๐‘– 6 18 17 2 -9 12 23 9 -5 14 -5 12 ๐พ1๐‘– 12 5 9 13 17 21 14 5 9 13 17 21 (ฮฆ๐‘– โˆ’ ๐พ2๐‘–) โˆ’ ๐พ1๐‘– -6 13 8 -11 -26 -9 9 4 -14 1 -22 -9 ๐‘ƒ๐‘– 20 13 8 15 0 17 9 4 12 1 4 17 Plaintext ๐‘ผ ๐‘ต ๐‘ฐ ๐‘ท ๐‘จ ๐‘น ๐‘ฑ ๐‘ฌ ๐‘ด ๐‘ฉ ๐‘ฌ ๐‘น 4. Conclusions We have determined the upper bound of ๐‘Ÿ๐‘ฃ๐‘Ž๐‘(๐ถ๐‘›). Since determining the ๐‘Ÿ๐‘ฃ๐‘Ž๐‘ of a graph is considered a Non-Deterministic Polynomial Time-complete problem, the exact value of any graph ๐บ remains unsolved. As a result, we offer the following open problems. a) Find the exact value of the cycle graph's rainbow vertex antimagic connection number. b) Find the exact value of any graph's rainbow vertex antimagic connection number. Jurnal Matematika MANTIK Vol 8, No 2, October 2022, pp. 78-88 88 5. Acknowledgments We would like to thank the Department of Mathematics Education, Universitas PGRI Argopuro Jember, CGANT University of Jember in 2022, and the reviewers that helped us finish this research. References [1] G. Chartrand, L. Lesniak, and P. Zhang, Graphs & Digraphs, Fifth Edition. 2010. [2] M. Krivelevich and R. Yuster, โ€œThe rainbow connection of a graph is (at most) reciprocal to its minimum degree,โ€ J. Graph Theory, vol. 63, pp. 185โ€“191, 2010. [3] D. N. S. Simamora and A. N. M. Salman, โ€œThe Rainbow (Vertex) Connection Number of Pencil Graphs,โ€ Procedia Comput. Sci., vol. 74, pp. 138โ€“142, 2015, doi: 10.1016/j.procs.2015.12.089. [4] G. Chartrand, G. L. Johns, K. A. McKeon, and P. Zhang, โ€œRainbow connection in graphs,โ€ Math. Bohem., vol. 133, pp. 85โ€“98, 2008. [5] G. Chartrand, G. L. Johns, K. A. McKeon, and P. Zhang, โ€œThe rainbow connectivity of a graph,โ€ Networks, 2009, doi: 10.1002/net.20296. [6] Dafik, I. H. Agustin, A. Fajariyato, and R. Alfarisi, โ€œOn the rainbow coloring for some graph operations,โ€ vol. 020004, 2016, doi: 10.1063/1.4940805. [7] X. Li and Y. Sun, โ€œAn Updated Survey on Rainbow Connections of Graphs- A Dynamic Survey,โ€ Theory Appl. Graphs, 2017, doi: 10.20429/tag.2017.000103. [8] M. S. Hasan, Slamin, Dafik, I. H. Agustin, and R. Alfarisi, โ€œOn the total rainbow connection of the wheel related graphs,โ€ 2018. [9] P. Heggernes, D. Issac, J. Lauri, P. T. Lima, and E. J. Van Leeuwen, โ€œRainbow vertex coloring bipartite graphs and chordal graphs,โ€ Leibniz Int. Proc. Informatics, LIPIcs, vol. 117, no. 83, pp. 1โ€“13, 2018, doi: 10.4230/LIPIcs.MFCS.2018.83. [10] Dafik, Slamin, and A. Muharromah, โ€œOn the ( Strong ) Rainbow Vertex Connection of Graphs Resulting from Edge Comb Product,โ€ 2018. [11] B. J. Septory, M. I. Utoyo, Dafik, B. Sulistiyono, and I. H. Agustin, โ€œOn rainbow antimagic coloring of special graphs,โ€ J. Phys. Conf. Ser., vol. 1836, no. 1, 2021, doi: 10.1088/1742-6596/1836/1/012016. [12] Marsidi, I. H. Agustin, Dafik, and E. Y. Kurniawati, โ€œOn Rainbow Vertex Antimagic Coloring of Graphs: A New Notion,โ€ CAUCHY โ€“ J. Mat. Murni dan Apl., vol. 7, no. 1, pp. 64โ€“72, 2021. [13] Dafik, F. Susanto, R. Alfarisi, I. H. Agustin, and M. Venkatachalam, โ€œOn Rainbow Antimagic Coloring Of Graphs,โ€ Adv. Math. Model. Appl., vol. 6, no. 3, pp. 278โ€“291, 2021. [14] H. S. Budi, Dafik, I. M. Tirta, I. H. Agustin, and A. I. Kristiana, โ€œOn rainbow antimagic coloring of graphs,โ€ J. Phys. Conf. Ser., vol. 1832, no. 1, 2021, doi: 10.1088/1742-6596/1832/1/012016. [15] A. C. Prihandoko, D. Dafik, and I. H. Agustin, โ€œImplementation of super H- antimagic total graph on establishing stream cipher,โ€ Indones. J. Comb., vol. 3, no. 1, p. 14, 2019, doi: 10.19184/ijc.2019.3.1.2. [16] A. C. Prihandoko, Dafik, and I. H. Agustin, โ€œStream-keys generation based on graph labeling for strengthening Vigenere encryption,โ€ Int. J. Electr. Comput. Eng., vol. 12, no. 4, pp. 3960โ€“3969, 2022, doi: 10.11591/ijece.v12i4.pp3960- 3969.