I am trying to compute the hash of a byte array in Java. To get a MessageDigest instance, I need to inform the hash name, but I only have the hash OID. Is there another way to do this or an existing map from hash OID to hash names?
String oid = "1.2.3.4.5";
String digestAlgorithmName = getDigestAlgorithmName(oid);
MessageDigest message...
I'm trying to package a Perl script to EXE using the pp utility bundled with PAR::Packer with the Filter::Crypto on. But something is wrong there. Without the filter, things are ok. With it, no. I think it has something to do with the DATA section in the script. The following simplified script might demonstrate the problem but I'm not su...
I need a Python library that supports PEM files and both RSA signing and DES3 encryption. pycrypto doesn't seem to support PEM, and its mechanism for loading existing keys is undocumented and cryptic. m2crypto doesn't seem to support DES/DES3, oddly.
I've been running an openssl subprocess, but I'd rather have something built in and pre...
According to the MSDN (http://msdn.microsoft.com/en-us/library/aa387314%28v=VS.85%29.aspx) the PFXImportCertStore function imports the cert/key into Base CSP (MS_STRONG_PROV) or Enhanced CSP (MS_ENHANCED_PROV). However, to use RSA/SHA2 signatures, I need to import the key into the Enhanced RSA and AES CSP (MS_ENH_RSA_AES_PROV) and I can'...
I have what I suspect is a malfunctioning wireless access point, the symptom of which is that OS X occasionally says 'your connection may be compromised' and disconnects for a minute.
As far as I can see by looking at dmesg lines which say
AirPort: Message Integrity Failure detected (G)
this indicates that some decrypted packet has ...
Hi ,
I've tried to implement the same steps as discussed in AES .NET
but with no success , i can't seem to get java and slowAes to play toghter ... attached is my code i'm sorry i can't add more this is my first time trying to deal with encryption would appreciate any help
private static final String ALGORITHM = "AES";
private static ...
Hi
Could anybody tell me what the equivalent .NET classes/methods are to the following Java methods:
decryptCipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
decryptCipher.init(2, getKey(0));
decryptCipher.doFinal(data);
where getKey() returns an object of type SecretKeySpec (data is dummy):
public static Key getKey(int cipher) {...
My problem is that I've written an application entirely using CNG on Windows 7, and now I have to port it backwards to Vista. Vista has CNG of course, but the SSL provider is an older version and is not always compatible - for example it won't import opaque keys exported from the Win7 version of the same provider.
E.g. this code works ...
Any recommendations on an AES encryption library that's compatible with Python 2.7 for Windows?
In the past we've used m2crypto with Python 2.6, but there's no version of m2crypto for Python 2.7 and our attempts to build a version from source have failed.
Thank you,
Malcolm
...