pycrypto
Copyright (c) 2013-2018 brinkqiang (brink.qiang@gmail.com)
Build status
Linux | Mac | Windows |
---|---|---|
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