pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
Binance
3 hours ago
Jsonutility argumentexception
4 hours ago
base OnStartAuthority
4 hours ago
NetworkClient AddPlayer
4 hours ago
WebGL Failed to load resource
4 hours ago
Unity err memory
4 hours ago
Unity Package Cache error
4 hours ago
JNI Error
4 hours ago
GLFW Error
4 hours ago
Process crashed
4 hours ago
Decrypt
using
system
;
using
system
.
IO
;
using
system
.
Text
;
using
system
.
Security
.
Cryptography
;
namespace
Rextester
{
public
class
Program
{
public
static
void
Main
(
string
[
]
args
)
{
Console.
WriteLine
(
Decrypt
(
"mfyJCIiTg8CiPTU38g88EQ=="
)
)
;
}
public
static
string
Decrypt
(
string
cipherText
)
{
string
EncryptionKey =
"MAKV2SPBNI99212"
;
byte
[
]
cipherBytes = Convert.
FromBase64String
(
cipherText
)
;
using
(
Aes encryptor = Aes.
Create
(
)
)
{
Rfc2898DeriveBytes pdb =
new
Rfc2898DeriveBytes
(
EncryptionKey,
new
byte
[
]
{
0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76
}
)
;
encryptor.
Key
= pdb.
GetBytes
(
32
)
;
encryptor.
IV
= pdb.
GetBytes
(
16
)
;
using
(
MemoryStream ms =
new
MemoryStream
(
)
)
{
using
(
CryptoStream cs =
new
CryptoStream
(
ms, encryptor.
CreateDecryptor
(
)
, CryptoStreamMode.
Write
)
)
{
cs.
Write
(
cipherBytes,
0
, cipherBytes.
Length
)
;
cs.
Close
(
)
;
}
cipherText = Encoding.
Unicode
.
GetString
(
ms.
ToArray
(
)
)
;
}
}
return
cipherText;
}
}
}
Parsed in 0.021 seconds