Top "Cryptography" questions

CRYPTOGRAPHY MUST BE PROGRAMMING RELATED.

Encrypting/Decrypting large files (.NET)

I have to encrypt, store and then later decrypt large files. What is the best way of doing that? I …

c# .net encryption cryptography rsa
How to use public and private key encryption technique in C#

I want to encrypt data using public/private key technique. I mean, encrypt with the public key of receiver and …

c# encryption cryptography public-key-encryption private-key
Is it possible to get identical SHA1 hash?

Given two different strings S1 and S2 (S1 != S2) is it possible that: SHA1(S1) == SHA1(S2) is True? If …

cryptography hash sha1 checksum
256bit AES/CBC/PKCS5Padding with Bouncy Castle

I am having trouble mapping the following JDK JCE encryption code to Bouncy Castles Light-weight API: public String dec(String …

java cryptography bouncycastle aes
How Do Hardware Token Devices work?

Recently, my bank sent me this tiny device that generates a unique code that must be used when performing online …

hash cryptography hmac two-factor-authentication one-time-password
Public key encryption with RSACryptoServiceProvider

I have been over an article at CodeProject a for a while that explains how to encrypt and decrypt using …

c# .net cryptography rsa encryption-asymmetric
Secure random numbers in javascript?

How do I generate cryptographically secure random numbers in javascript?

javascript cryptography
C# Export Private/Public RSA key from RSACryptoServiceProvider to PEM string

I have an instance of System.Security.Cryptography.RSACryptoServiceProvider, i need to export it's key to a PEM string - …

c# cryptography rsa pem
Why use the C# class System.Random at all instead of System.Security.Cryptography.RandomNumberGenerator?

Why would anybody use the "standard" random number generator from System.Random at all instead of always using the cryptographically …

c# .net cryptography random
How to recover a RSA public key from a byte[] array?

I'm wondering if it's possible to recover a RSA public key that I have converted to byte array previously. byte[] …

java cryptography rsa