This document proposes a new encryption algorithm to securely store personal identification numbers (PINs) on smart cards. The algorithm uses the position value of each Unicode character in the plaintext, along with the character value and length of the plaintext, to calculate the ciphertext. It also incorporates the date and time obtained from the smart card to generate encryption keys. A complexity analysis shows it would take over 1 million years to brute force decrypt the ciphertext using this algorithm. The encrypted PIN can then be securely stored on the smart card and read by ATM machines.