root/galaxy-central/eggs/Beaker-1.4-py2.6.egg/beaker/crypto/pycrypto.py @ 3

リビジョン 3, 204 bytes (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1"""
2Encryption module that uses pycryptopp.
3"""
4from pycryptopp.cipher import aes
5
6def aesEncrypt(data, key):
7    cipher = aes.AES(key)
8    return cipher.process(data)
9
10
11def getKeyLength():
12    return 32
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。