Category Archives: Cryptography

Generating RSA keys with Python 3

I was looking for a quick way to generate an RSA key in Python 3 for some unit tests which needed a public key as an OpenSSH string. It ended up taking longer than expected because I started by trying … Continue reading

Posted in Computers and Internet, Cryptography, Python | Tagged | Leave a comment

Simple AES byte encryption and decryption routines in C#

I was looking for some simple examples of using AES symmetric encryption to encrypt and decrypt data in C#. Though there are some very helpful resources out there, what I needed were basic routines that: – Take clear text and … Continue reading

Posted in Cryptography | Leave a comment

Ciphers and Cryptographic Hashes

The System.Security.Cryptography namespace supports a variety of cryptographic services to encrypt and decrypt data, create one-way hashes, authenticate messages and generate random numbers. One way hashes, which can take variable length data and convert it into fixed length binary sequences, … Continue reading

Posted in Cryptography | Leave a comment