我想将md5值与表格列匹配,如phalcon中的md5(id)= $ id

时间:2016-08-07 10:34:30

标签: md5 phalcon

我很难将md5值与表列匹配,甚至找不到phalcon文件。

如果有md5加密值我想与表id(int)列匹配。

1 个答案:

答案 0 :(得分:1)

如果您在md5中加密了db列,就像将密码存储在md5中一样 那么你可以做到

global counter
global winner
def initBoard():
    global x
    global y
    x = int(input("Give x size for the board "))
    while x < 1 or x > 20:
        x = int(input("Please give a valid input (between 1 and 20) "))
    y = int(input("Give y size for the board "))
    while y < 1 or y > 20:
        y = int(input("Please give a valid input (between 1 and 20) "))
    i = 0
    j = 0
    global board
    board = [[0 for i in range(x)] for j in range(y)]

def showBoard():
    i = 0
    j = 0
    for i in range(1,1 + y):
        for j in range(1,1 + x):
            if j % x == 0:
                print("[", board [i-1] [j-1], "]", "\n")
            else:
                print("[", board [i-1] [j-1], "]", end="")

def setPiece():
    return 0

def play():
    initBoard()
    showBoard()

play()