Author Archives: smike19

Experimenting with ECB and CBC Ciphers of AES

The openssl help shows 2 groups ciphers with ECB (Electronic Code book) and CBC (Cipher Block Chaining) suffixes. For example aes-128-ecb and aes-128-cbc or aes-256-ecb and aes-256-cbc for AES (Advanced Encryption Standard) ciphers. In ECB mode input data is divided in blocks of the same length. Then every block will be encrypted with the same… Read More »

Changing Certificate Verification Flags in openssl

Recently I was needed to modify some flags for verification of X.509 public key certificates. These flags defined in x509_vfy.h include files. Particularly it was necessary to set X509_V_FLAG_X509_STRICT flag, which enables additional security checks and turns off workarounds for broken certificate chain. In other words this flag makes the certificate verification more strictly. This… Read More »

Big Sur and built-in dynamic linker cache

On Big Sur Apple made significant changes in OS X file system. System-provided libraries are moved from filesystem to dynamic linker cache. Probably it is done because Big Sur OS X supports 2 different CPUs: Inter and Apple Silicon processors and currently dynamic linker cache contains 2 versions for the both processors: Apple Silicon ARM… Read More »

About dladdr function.

dladdr function from Unix-like OS looks similar as GetProcAddress Win32 API function. However dladdr obtains more information related to requested function than function entry point address as GetProcAddress does. Besides GetProcAddress requires the handle of the DLL module that contains the requested function, dladdr needs only the function name. Definitely in both cases DLL or… Read More »

Rip Audio CD Programmatically

More than 10 years ago I started XEdit project which is binary editor for files and disks contents. XEdit is available there. I am still using it sometime, however I do not support the project since 2011 mainly because this MFC application was written on Visual C++ 6 and I have no time to do… Read More »

Hotlinking protection for Dummies and against Dummies

Hotlinking means using URLs from hosted website on another website, usually it is links to images or downloadable files but not only. There are a lot of methods how protect URL from hotlinking it. Websites hosted on Apache server may prevent hotlinking using appropriate configuration defined in .htaccess files. There are WordPress plugins to block… Read More »

Apache on CentOS and HTTP -> HTTPS redirection

Apache HTTP server is a free, open source and popular web Server. It is cross platform server that may run on Linux, Windows and other operating systems. This post is about Apache installation and configuration on CentOS 8. I wrote it for myself as a reminder for future own references. Apache is available in CentOS… Read More »

Phishing Ascending to Heaven

Scammers began adopting cloud services such as Azure, AWS, Alibaba, and Google Docs and others for their activities. They use them to place their malicious crafts and mislead gullible dummies to get access to bank accounts or information about credit cards. Recently I received text message on my cell phone. The message suggested me to… Read More »

Installing swift on CentOS 8

Previously I worked with swift occasionally and using xCode only. There is my previous post with XML parser written in swift language. Here is my experience in swift installation on Linux platform with initial command line programming example. The first step – swift installation: It takes several minutes. Check swift version: # swift –version Swift… Read More »

ssh login troubleshooting

Suddenly ssh remote control to some of Mac devices stopped working, because remote host identification of that Mac device had been changed on remote side. Generally it means that the remote host key does not match the host key currently saved in /var/root/.ssh/known_hosts file. In other words the ssh handshake failed because host key verification… Read More »