Currently, the security of stored data has become an absolute requirement. Security against computer networks connected to the database is no longer safe because data leaks can be caused by irresponsible people. The results of this program can be used to secure data. One of the cryptography that is suitable for securing the data is the Electronic Code Book algorithm because the Electronic Code Book cryptography is suitable for encrypting a password in a login data. The program results show that the Electronic Code Book (ECB) algorithm is suitable for this security, because it can encrypt the password in the login data.