Skip to content

Instantly share code, notes, and snippets.

import sun.misc.BASE64Encoder;
import sun.misc.BASE64Decoder;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
/**
@0xGsmart
0xGsmart / cheatsheet-elasticsearch.md
Created January 21, 2021 03:20 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@0xGsmart
0xGsmart / DbProviderFactoryExtensions.cs
Created June 22, 2020 07:30
Extension methods for DbProviderFactory.
using System.Data.Common;
/// <summary>
/// Extension methods for System.Data.Common.DbProviderFactory.
/// </summary>
internal static class DbProviderFactoryExtensions
{
/// <summary>
/// Returns a new instance of the provider's class that implements the
/// System.Data.Common.DbConnection class.