Skip to content

Instantly share code, notes, and snippets.

View ImanEmadi's full-sized avatar
💻
Work/Study

Iman Emadi ImanEmadi

💻
Work/Study
View GitHub Profile
@flymrc
flymrc / aes-cbc-padding.kts
Last active September 30, 2024 20:19
Kotlin AES Encryption and Decryption
// ref: https://www.baeldung.com/java-aes-encryption-decryption
import java.util.*
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec
fun decrypt(algorithm: String, cipherText: String, key: SecretKeySpec, iv: IvParameterSpec): String {
val cipher = Cipher.getInstance(algorithm)
@michaeltreat
michaeltreat / mongodb_shell_commands.md
Last active December 29, 2024 08:19
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.