Conventional two-dimensional (2-D) barcode patterns are printed with black and white squares to encode texts. A few papers have proposed special 2-D barcode patterns with extra encrypted data, but the security of extra encrypted data is not emphasized usually. Therefore, this paper proposes color 2-D barcode patterns composed of black, blue, white, and yellow subsquares to extra encrypt binary data with higher security. Because blue looks like black and yellow looks like white, a color 2-D barcode pattern performs like a conventional 2-D barcode pattern. On the other hand, black, blue, white, and yellow subsquares are used to denote binary data. The security of extra encrypted data depends on an image scrambling algorithm by using the sinusoidal function, and the image scrambling algorithm can make a scrambled image have a high image scrambling degree percentage even after image scrambling is operated only one time.