root/galaxy-central/eggs/Beaker-1.4-py2.6.egg/beaker/crypto/pycrypto.py
@
3
リビジョン 3, 204 bytes (コミッタ: kohda, 14 年 前) |
---|
Rev | 行番号 | |
---|---|---|
[3] | 1 | """ |
2 | Encryption module that uses pycryptopp. | |
3 | """ | |
4 | from pycryptopp.cipher import aes | |
5 | ||
6 | def aesEncrypt(data, key): | |
7 | cipher = aes.AES(key) | |
8 | return cipher.process(data) | |
9 | ||
10 | ||
11 | def getKeyLength(): | |
12 | return 32 |
Note: リポジトリブラウザについてのヘルプは TracBrowser
を参照してください。