Tutorials
Nginx : How to block user agent ?
Problem : Looking for ways to configure Nginx to block certain user agents like crawlers, SEO tools and robots from….... read more
Golang : Encrypt and decrypt data with x509 crypto
This is a simple tutorial demonstrating how to encrypt and decrypt string data with Golang's crypto/x509
package. We will use….... read more
Nginx : TLS 1.2 support
Couple of days back I was toying with this website https://www.ssllabs.com/ssltest/ to see how good is my website….... read more
How to test Facebook App on localhost ?
Usually, in the past when I setup Facebook application for my websites. The new Facebook App Connect API has no….... read more
Golang : Create x509 certificate, private and public keys
Instead of using openssl to generate public and private keys. Go can generate x509 certificates and equivalent RSA private/public keys….... read more
Golang : Smarter Error Handling with strings.Contains()
In this tutorial, we will learn some simple trick with strings.Contain() function on capturing the error message and handling it….... read more
Golang : Regular Expression for alphanumeric and underscore
Problem :
Need a regular expression that only allows upper, lowercase characters, underscores and numbers for Go.
Solution :
Use….... read more
nginx: [emerg] unknown directive "passenger_enabled"
In my opinion, nginx in a way is better than Apache. It has low memory footprint and configuring it was….... read more
Golang : Read file
This is the most basic way of how to read a file into buffer and display its content chunk by….... read more
Golang : Read binary file into memory
Reading a binary file content into memory for further manipulation is easy with Go. In this tutorial, we will show….... read more
Golang : Tutorial on loading GOB and PEM files
Private and public key cryptography systems have enabled a vast array of security implementations such as encrypting email(PGP), ssh login….... read more
Golang : Saving private and public key to files
In this tutorial we will learn how to save the RSA private and public keys to files. We will use….... read more
Golang : How To Use Panic and Recover
In this tutorial we will understand how panic function works and how to "interrupt and recover" from the panic.
First,….... read more
Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions
In cryptography, the Elliptic Curve Digital Signature Algorithm (ECDSA) is a variant of the Digital Signature Algorithm (DSA) which uses….... read more
Golang : Example for DSA(Digital Signature Algorithm) package functions
There are not many examples or tutorials out there on how to fully utilize the crypto/dsa
package. In this tutorial,….... read more
Golang : Padding data for encryption and un-padding data for decryption
Continuing from our last tutorial on TripleDES encryption. We purposely left out the padding/un-padding functions to keep the….... read more
Golang : Encrypt and decrypt data with TripleDES
In this tutorial we will learn how to encrypt and decrypt data with Golang's DES crypto package.
Triple DES (3DES)….... read more
List of Golang XML tutorials
Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format….... read more