Skip to content

Instantly share code, notes, and snippets.

@toksdotdev
toksdotdev / IPaymentDataEncryption.cs
Created February 27, 2018 12:30
A TripleDES Encryption implementation in C# with support for netstandard2.0
using System;
namespace EncryptionService
{
interface IPaymentDataEncryption
{
string GetEncryptionKey(string secretKey);
string EncryptData(string encryptionKey, String data);
string DecryptData(string encryptedData, string encryptionKey);
}
@toksdotdev
toksdotdev / nuban-example.rs
Last active December 19, 2017 05:21
Generating random and fully computed NUBAN in Rust.
extern crate nuban_rust;
use nuban_rust::Nuban;
fn main() {
let a = [
["382", "898424554"], ["032", "457395734"], ["122", "758375034"], ["776", "564820900"],
["453", "898424554"], ["989", "457395734"], ["090", "758375034"], ["232", "564820900"],
["766", "898424554"], ["878", "457395734"], ["343", "758375034"], ["445", "564820900"],
];
@toksdotdev
toksdotdev / Screenshoter.py
Created September 15, 2017 14:05
A simple library to perform a continuous screenshot of your screen using pyautogui module - In Python
# MIT License
# Copyright (c) 2016 Derrick Rono
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
@toksdotdev
toksdotdev / index.php
Created May 12, 2017 08:35 — forked from drizzentic/index.php
Sample USSD Application
<!-- MIT License
Copyright (c) 2016 Derrick Rono
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: