From: Jim B. <jb...@zy...> - 2013-04-24 14:30:40
|
PyCrypto uses C, which Jython does not support without significant porting work (eg JNI, JNA) on your part. Instead use BouncyCastle - http://www.bouncycastle.org/java.html On Wed, Apr 24, 2013 at 8:21 AM, vijetha kulal <vij...@gm...>wrote: > I installed crypto and could import the same. But now I receive error "NO > MODULE NAMED Cipher". I tried installing crypto.cypher but failed. I can't > import cipher/DES3. Could you please help me out with this? > > Thanks > Vij > > > On Wed, Apr 24, 2013 at 11:09 AM, vijetha kulal <vij...@gm...>wrote: > >> Hi, I downloaded pycrypto and I tried installing it using easy_install. >> But, I get some error and I'm not able to import crypto. Could you please >> give an example for how to use it? >> >> Thanks >> Vij >> >> >> >> On Thu, Apr 18, 2013 at 9:02 PM, Santoso Wijaya <san...@gm... >> > wrote: >> >>> Hi, >>> >>> Have you looked into pycrypto (https://www.dlitz.net/software/pycrypto/ >>> )? >>> >>> >>> >>> ~/santoso >>> >>> >>> On Thu, Apr 18, 2013 at 3:59 AM, vijetha kulal <vij...@gm...>wrote: >>> >>>> Hi >>>> >>>> I use Jython-2.2.1 in nGrinder version 3.11 and JDK version 1.7.0_10. >>>> >>>> How do I Encrypt a string using TripleDES encyption with my own key? >>>> Following is the code in C#: >>>> >>>> string childRegistration = TripleDES.EncryptUnicode(childData, key); >>>> >>>> Thanks >>>> Viji >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Precog is a next-generation analytics platform capable of advanced >>>> analytics on semi-structured data. The platform includes APIs for >>>> building >>>> apps and a phenomenal toolset for data science. Developers can use >>>> our toolset for easy data analysis & visualization. Get a free account! >>>> http://www2.precog.com/precogplatform/slashdotnewsletter >>>> _______________________________________________ >>>> Jython-users mailing list >>>> Jyt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jython-users >>>> >>>> >>> >> > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |