This document proposes a new method for designing dynamical key-dependent S-boxes based on two chaotic maps: the 2D logistic map and 2D cross map. The method uses these chaotic maps to generate integer values that are inserted into an S-box table. Each byte of an encrypted message is then substituted using this dynamically generated S-box. The generated S-boxes are analyzed based on criteria like avalanche effect, strict avalanche effect, key sensitivity, and resistance to differential and linear cryptanalysis. Results show the proposed method can create secure dynamical S-boxes suitable for use in block ciphers.