Skip to content

Instantly share code, notes, and snippets.

View muhammetozeski's full-sized avatar

Muhammet Mustafa Özeski muhammetozeski

View GitHub Profile
@viruseg
viruseg / .Encrypting & Decrypting (file, string, byte array) in C#, NET 8.0 and Unity.cs
Last active April 3, 2024 19:22
Encrypting & Decrypting (file, string, byte array) in C#, NET 8.0 and Unity
//The code is based on the code from here: https://stackoverflow.com/a/10177020/1221983
//And adapted for NET 8 and Unity.
//Reduced memory consumption.
//Added possibility to encrypt byte arrays, not only strings.
//You can also attach custom data that will not be encrypted.
var password = "nso%dhfkl$siohf";
var str = "This is test string!№;%^#@^&";
@pnhoang
pnhoang / howto-download-youtube-videos.md
Last active February 21, 2025 06:45
How to download ALL videos of ANY YouTube Channel
@mjs3339
mjs3339 / BigIntegerHelper.cs
Created January 2, 2018 21:00
C# BigIntegerHelper Class
public static class BigIntegerHelper
{
private static readonly BigInteger Ten = new BigInteger(10);
public static BigInteger ToBigInteger(this ulong ul)
{
return new BigInteger(ul);
}
public static BigInteger ToBigInteger(this long ul)
{
return new BigInteger((ulong) ul);