/pycrypto

python built-in module implements common algorithms such as crc, md5, rc, des, aes, base64.

Primary LanguageC++MIT LicenseMIT

pycrypto

Copyright (c) 2013-2018 brinkqiang (brink.qiang@gmail.com)

Build status

Linux Mac Windows
lin-badge mac-badge win-badge

Intro

  • pycrypto
# -*- coding: utf-8 -*-
import pycrypto

rc = pycrypto.CDMRC()
rc.SetKey("123456")
enbuf = rc.Encrypt("hello world")
print(enbuf)
debuf = rc.Decrypt(enbuf)
print(debuf)

output

皹=钄�改
hello world

Thanks