cryptography
Asymmetric cryptography example in C#
I need to send confidential data to a server over a TCP connection. I have done a lot of researching and I understand the theoretical part. Based on what I have researched I want to do the following:[详细]
2023-04-07 12:21 分类:问答MSDN HMAC-SHA1 example not working
Creating an HMAC steps by using CryptoAPI found here: http://msdn.microsoft.com/en-us/library/Aa379863[详细]
2023-04-07 03:51 分类:问答SSL, getting an upper bound on the length of a decoded message based on the encoded message
Simply put, when given an encoded message of length n, is there anyway I can bound in advance the length of the decoded message (for memory allocation purposes)?[详细]
2023-04-07 02:54 分类:问答How to convert a strongname public key (snk) to <RSAKeyValue>?
I have a file testpublic.snk which holds a public key. I have created it with sn -p c:\\test.snk c:\\testpublic.snk.[详细]
2023-04-06 23:27 分类:问答HMACSHA1 off by 2 bytes
I am using this class in MSVC++ 2010 Express: http://www.codeproject.com/KB/recipes/HMACSHA1class.aspx.I am running Vista 32bit.Pretty much to get it working I just changed...[详细]
2023-04-06 16:44 分类:问答OpenSSL Command Line and Ruby OpenSSL library differ when using same parameters to encrypt text
Note:Using OpenSSL for symmetric encryption of text. I made a Ruby script to test OpenSSL and I found I\'m getting different results.The key, iv, and ciphers are identical, so I would expect the resu[详细]
2023-04-06 10:17 分类:问答Decryption of text file with format other than ASCII
I\'ve been given an encrypted file where the plaintext has a \"common (but not extremely common these days)\" format. ~80000 bytes[详细]
2023-04-06 02:21 分类:问答Suspend "Weak encryption keys" warning from libgcrypt->libgpg-error
I\'m using weak keys while doing cryptography with libgcrypt and I\'m getting proper warnings about it from libgpg-error as \"Weak encryption keys\" to stderr. Problem is that I\'m reading std:err int[详细]
2023-04-06 00:45 分类:问答How can I convert a ECDSA curve specification from the SEC2 form into the form needed by Go?
I`m trying to implement ECDSA in the curve secp256k1 in Google Go. Secp256k1 is defined by the SECG standard (SEC 2, part 2, Recommended Elliptic Curve Domain Parameters over [详细]
2023-04-05 20:05 分类:问答How to access etoken through CryptoAPI's?
I am developing an html application where an user has to first login using his digital certificate. After login he has to perform encryption and decryption of data using his digital certificate.[详细]
2023-04-05 15:31 分类:问答