Пример #1
0
    def decrypt(self, enc, secret):
        """ tbd """

        des = pyDes.des(secret)
        raw = des.decrypt(enc, "*")

        return raw
Пример #2
0
    def encrypt(self, raw, secret):
        """ tbd """

        des = pyDes.des(secret)
        enc = des.encrypt(raw, "*")

        return enc
Пример #3
0
  def decrypt (self, enc, secret) :

    """ tbd """

    des = pyDes.des(secret)
    raw = des.decrypt(enc, "*")

    return raw
Пример #4
0
  def encrypt (self, raw, secret) :

    """ tbd """

    des = pyDes.des(secret)
    enc = des.encrypt(raw, "*")

    return enc