Challenge 'Didactic RGB'

2018. 2. 15. 05:460x05 Crypto/hacker.org

728x90

문제 : Magenta를 RGB로 나타내라.


R : RED

G : GREEN

B : BLUE


후 python 3.x 버전 linux에 설치하다가 PIL 안되서 결국 WINDOWS에서 해결했다.


from PIL import Image

im = Image.open("MAGENTA.png")

pix = im.load()

print (im.size)

print (pix[0,0])

#pix[x,y]=value

im.save("reMAGENTA.png")


R: 156

G : 84

B : 198 


숫자 전부 concat(BINARY) -> DECIMAL 


답 : 10245318

'0x05 Crypto > hacker.org' 카테고리의 다른 글

Challenge 'Didactic Vampire Text'  (0) 2018.02.15
Challenge 'Didactic Bits'  (0) 2018.02.15
Challenge 'Didactic XOR Cipher'  (0) 2018.02.15
Challenge 'Didactic XOR'  (0) 2018.02.15
Challenge 'Didactic Text'  (0) 2018.02.15