• 検索結果がありません。

Magic Square and Cryptography (Developments of Language, Logic, Algebraic system and Computer Science)

N/A
N/A
Protected

Academic year: 2021

シェア "Magic Square and Cryptography (Developments of Language, Logic, Algebraic system and Computer Science)"

Copied!
3
0
0

読み込み中.... (全文を見る)

全文

(1)

Magic Square

and

Cryptography

Tomoko

Adachi,

Yohei

Sugita

Department

of Information

Sciences,

Toho

University

2‐2‐1

Miyama, Funabashi, Chiba,

274‐8510,

Japan

E‐mail:

adachi@is.sci.toho‐u.ac.jp

1. Introduction

A

magic

squareof ordern isan

arrangement

of the

n^{2} integers

0,

1,

\cdots,

n^{2}-1

into an n\times n square with the

property

that the sums of each row, each

column,

and eachof the main

diagonals

arethesame.

Magic

squares areknown in ancient

times in China and India.

Many people

have been interested in

magic

squares for hundreds years.

In this paper, we describe relation of

magic

squares and latin squares. More‐

over, we described

cryptosystem

basedon

magic

squares.

2.

Magic Square

and Latin

Square

A latin square oforder n is an n\times n array in which n distinct

symbols

are

arranged

sothat each

symbol

occursonce ineach row and column.

Let

L_{1}

and

L_{2}

be latinsquares of thesame order

n(\geq 2)

. Wesaythat

L_{1}

and

L_{2}

are

orthogonal if,

when

superimposed,

each of the

possible n^{2}

ordered

pairs

occurs

exactly

once. We say that a set

\{L_{1}, L_{2}, \cdots, L_{t}\}

oft

(\geq 2)

latin squares

of order n is

orthogonal

if any two distinct squares are

orthogonal.

Such a set

of

orthogonal

squares is said to be a set of

rnutually orthogonal

latin squares

(MOLS).

For

q\geq 5

an odd

prime

power, aset of

q-3

MOLS of order q eachof which has distinct elements on the two main

diagonals.

Such latin squares aresaid to

be

diagonal.

Theorem 2.1

(Ỉ21)

If

n is an

integer

for

which thereis a

pair

of orthogonal diag‐

onal latinsquares

of

ordern, then a

magic

square

of

ordern can be constructed.

Example

2.2 Let consider the

following orthogonal diagonal

latin square of order 5.

数理解析研究所講究録

(2)

4 2 1 0 3 0 3 4 2 1

L_{1} = 2 1 0 3 4

3 4 2 1 0 1 0 3 4 2 4 0 2 1 3 2 1 3 4 0

L_{2}

= 3 4 0 2 1 0 2 1 3 4 1 3 4 0 2

If

L_{1}

is

superimposed

on

L_{2}

,weobtain the

following

array

L_{1}L_{2}

of ordered

pairs.

Ifwe consider an ordered

pair

in each cellof

L_{1}L_{2}

as a

pentanary

number,

and we

change

a

pentanary

number in each cell of

L_{1}L_{2}

into a

denary

number,

we

obtain the

magic

square M of order 5. 44 20 12 01 33 02 31 43 24 10

L_{1}L_{2}

= 23 14 00 32 41 30 42 21 13 04 11 03 34 40 22 24 10 7 1 18 2 16 23 14 5 M = 13 9 0 17 21 15 22 11 8 4 6 3 19 20 12

3.

Cryptosystem

Based on

Magic Square

In this

section,

we described

cryptosystem

based on

magic

squares

([1]).

At

first,

we prepare a 4

digits

seed

number,

a

starting

number of a

magic

square, and a

magic

square sum, The

algorithm

of

[1]

starts with

building

4\times 4

magic

square,

by using

a

starting

number anda

magic

squaresum.

Incrementally,

8\times 8 and 16\times 16

magic

squares arebuilt

using

4\times 4

magic

squares as

building

blocks. Ifwe have a message with t

letters,

we build t16\times 16

magic

squares.

Secondly,

we

investigate

theASCIIvalue of each letter inamessage.

Suppose

that we have a message “ABA” The ASCII values offor \mathrm{A}” and “B” are 65

and

66, respectively.

To

encrypt

(\mathrm{A}

”,

the numerals whichoccur at65‐th

position

infirst and third 16\times 16

magic

squares aretaken. To

encrypt

\mathrm{B}

”,

the numeral

which occurs at 66‐th

position

in second 16\times 16

magic

square is taken. When we

encrypt

a message, we use a

public‐key

cryptosystem

RSA.

Then,

the first

and third letters “A”are

encrypted

different

cipher

texts, since we use different

16\times 16

magic

squares.

References

[1]

G.

Ganapathy,

and K.Mani

(2009);

Add‐On

Security

Model for

Public‐Key

Crtptosystem

Based on

Magic Square Implementation, Proceedings of

the

World

Congress

on

Engineering

and

Computer

Science 2009 Vol. WCECS

2009,

October

20‐22, 2009,

San

Francisco,

USA

(3)

[2]

C. $\Gamma$.

Laywine

and G. L. Mullen

(1998);

Discrete Mathematics

Using

Latin

Squares,

John

Weiley

&

Sons,

INC.

参照

関連したドキュメント

For a class of sparse operators including majorants of sin- gular integral, square function, and fractional integral operators in a uniform manner, we prove off-diagonal

Next, let us observe that it follows from Lemma 2.4 and [1], Proposition 3.2, that the zero divisor of the square Hasse invariant of this nilpotent indigenous bundle coincides with

The results of a numerical analysis for optimal low-thrust limited power simple transfers no rendezvous between coplanar circular orbits in an inverse-square force field,

Thanks to this correspondence, formula (2.4) can be read as a relation between area of bargraphs and the number of palindromic bargraphs. In fact, since the area of a bargraph..

Compactly supported vortex pairs interact in a way such that the intensity of the interaction decays with the inverse of the square of the distance between them. Hence, vortex

For a given complex square matrix A, we develop, implement and test a fast geometric algorithm to find a unit vector that generates a given point in the complex plane if this point

The rationality of the square root expression consisting of a product of repunits multi- plied by twice the base of one of the repunits depends on the characteristics of the

Moreover, by (4.9) one of the last two inequalities must be proper.. We briefly say k-set for a set of cardinality k. Its number of vertices |V | is called the order of H. We say that