tagged [public]
Should I use internal or public visibility by default?
Should I use internal or public visibility by default? I'm a pretty new C# and .NET developer. I recently created an MMC snapin using C# and was gratified by how easy it was to do, especially after he...
How can I find all the public fields of an object in C#?
How can I find all the public fields of an object in C#? I'm constructing a method to take in an ArrayList(presumably full of objects) and then list all the fields(and their values) for each object in...
gpg decryption fails with no secret key error
gpg decryption fails with no secret key error I have a gpg .key file that is used as passphrase for decrypting a .dat.pgp file. The encrypted .data.pgp file gets successfully decrypted on one server w...
- Modified
- 4 Feb at 14:51
GDPR: Encrypted logging in C#
GDPR: Encrypted logging in C# The suggestion to encrypt log files as a means of protecting the personal data that might be contained in them is widespread. What I've not seen is a good reference imple...
- Modified
- 15 Mar at 14:41
Public and Internal members in an Internal class?
Public and Internal members in an Internal class? Ok, so this may be a bit of a silly question, and there's certainly the obvious answer, but I was curious if I've missed any subtleties here. Is there...
- Modified
- 1 Apr at 23:14
How to Verify Signature, Loading PUBLIC KEY From CRT file?
How to Verify Signature, Loading PUBLIC KEY From CRT file? I reviewed many forums and examples, but none helped me. I need verify signature from any webservice. I have test.crt file with public key fo...
- Modified
- 11 Oct at 20:25
C# Make everything following public / private like in C++?
C# Make everything following public / private like in C++? I recently started learning C#, but I have some background in C++. I was wondering how I would do something like I tried doing this in C#, bu...
key_load_public: invalid format
key_load_public: invalid format I used PuTTY Key Generator to generate a 4096 bit RSA-2 key with a passphrase. I save the .ppk and an openSSL format public key. The putty format public key doesn't wor...
- Modified
- 17 Mar at 17:37
Reading PEM RSA Public Key Only using Bouncy Castle
Reading PEM RSA Public Key Only using Bouncy Castle I am trying to use C# to read in a `.pem` file that contains only a RSA public key. I do not have access to the private key information, nor does my...
- Modified
- 5 Jul at 14:22
'Cannot find the requested object' exception while creating X509Certificate2 from string
'Cannot find the requested object' exception while creating X509Certificate2 from string I am trying to create `X509Certificate2` from string. Let me show an example: and `keyBase64String` has a such ...
- Modified
- 19 May at 06:37
C# Foreach statement does not contain public definition for GetEnumerator
C# Foreach statement does not contain public definition for GetEnumerator I'm having a problem with a Windows Form application I'm building in C#. The error is stating "foreach statement cannot operat...
- Modified
- 1 Mar at 13:48
Properties vs Public member variables
Properties vs Public member variables > [What is the difference between a field and a property in C#](https://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property-...
- Modified
- 23 May at 11:46
How to ssh connect through Python Paramiko with ppk public key
How to ssh connect through Python Paramiko with ppk public key I'm using [Paramiko](http://www.lag.net/paramiko/) to connect through SSH to a server. Basic authentication works well, but I can't under...
- Modified
- 11 Jul at 19:38
C# RSA Public Key Output Not Correct
C# RSA Public Key Output Not Correct I am currently trying to generate and send a public RSA key using C#. It should be a 2048 bit long key in PEM format. I have successfully done so using OpenSSL com...
- Modified
- 23 May at 12:32
Verify host key with pysftp
Verify host key with pysftp I am writing a program using pysftp, and it wants to verify the SSH host Key against `C:\Users\JohnCalvin\.ssh\known_hosts`. Using PuTTY, the terminal program is saving it ...
- Modified
- 13 Apr at 19:55
Using Base64 encoded Public Key to verify RSA signature
Using Base64 encoded Public Key to verify RSA signature In a nutshell, this is my problem: ``` private string publicKeyString = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVGUzbydMZS+fnkGTsUkDKEyFOGwghR23...
- Modified
- 5 Jan at 07:37
OpenPGP encryption with BouncyCastle
OpenPGP encryption with BouncyCastle I have been trying to put together an in-memory public-key encryption infrastructure using OpenPGP via Bouncy Castle. One of our vendors uses OpenPGP public key en...
- Modified
- 17 Sep at 18:11
RSA Public Key format
RSA Public Key format Where can i find some documentation on the format of an RSA public key? An RSA public key formatted by `OpenSSH`: > ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9...
- Modified
- 7 Oct at 07:34
How to load the RSA public key from file in C#
How to load the RSA public key from file in C# I need to load the following RSA public key from a file for use with the RSACryptoServiceProvider class. How can I do this? ``` -----BEGIN PUBLIC KEY----...
- Modified
- 16 Jul at 15:53
Why are public fields faster than properties?
Why are public fields faster than properties? I was poking around in XNA and saw that the `Vector3` class in it was using public fields instead of properties. I tried a quick benchmark and found that,...
- Modified
- 11 Mar at 01:30