Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
CubexSoft
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Security.Cryptography; using System.ComponentModel; using System.Drawing; using System.Globalization; using System.IO; using System.Text; namespace Rextester { public class Program { public static string EncryptString(string plainText, byte[] key, byte[] iv) { Aes encryptor = Aes.Create(); encryptor.Mode = CipherMode.CBC; encryptor.Key = key; encryptor.IV = iv; MemoryStream memoryStream = new MemoryStream(); ICryptoTransform aesEncryptor = encryptor.CreateEncryptor(); CryptoStream cryptoStream = new CryptoStream(memoryStream, aesEncryptor, CryptoStreamMode.Write); byte[] plainBytes = Encoding.ASCII.GetBytes(plainText); cryptoStream.Write(plainBytes, 0, plainBytes.Length); cryptoStream.FlushFinalBlock(); byte[] cipherBytes = memoryStream.ToArray(); memoryStream.Close(); cryptoStream.Close(); string cipherText = Convert.ToBase64String(cipherBytes, 0, cipherBytes.Length); return cipherText; } public static void Main(string[] args) { //Your code goes here byte[] bytes = Encoding.UTF8.GetBytes("Er#hq$lm*nWMaP#j"); byte[] bytes2 = Encoding.UTF8.GetBytes("rWt*n#gqI$kMfuOM"); string lisans_bitis_tarihi = "01-01-2222"; //Lisans süresini değiştirebilirsiniz. string sabit1 = "All Mail Backup"; string lisans_mail_adresi = "email@decompile.us"; //Lisans Mail Adresini //Lisanslardan herhangi birini kullanabilirsiniz. string lisans_enterprise = "Enterprise"; string lisans_personal= "Personal"; string lisans_technical = "Technical"; Console.WriteLine(EncryptString(lisans_bitis_tarihi + "#" + sabit1 + "#" + lisans_mail_adresi + "#" + lisans_enterprise + "#" + "All", bytes, bytes2)); } } }
run
|
edit
|
history
|
help
0
sdfrgthyjukiujyht5r4der
D19
WEDXSCd
sdhfcsdcsi
Unicode Braille Patterns.
12
The abstract factory design pattern implemented in c# using generics.
Validate or get the check digit of a segment of a Windows 8 / 10 activation installation ID
myPractice
单链表