Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

an attempt at making a usable code thing

Language: Layout:
- ] Show input
Compilation time: 1.13 sec, absolute running time: 0.37 sec, cpu time: 0.28 sec, memory peak: 42 Mb, absolute service time: 1,61 sec 
edit mode |  history  | discussion
Error(s):
Unhandled exception. System.TypeInitializationException: The type initializer for 'Crypto' threw an exception.
 ---> System.IO.FileLoadException: Could not load file or assembly 'System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. An internal error occurred.
 (0x8007054F)
File name: 'System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'


   --- End of inner exception stack trace ---
   at Interop.Crypto.EvpSha1()
   at Internal.Cryptography.HashProviderDispenser.CreateMacProvider(String hashAlgorithmId, Byte[] key)
   at Internal.Cryptography.HMACCommon.ChangeKey(Byte[] key)
   at System.Security.Cryptography.HMACSHA1..ctor(Byte[] key)
   at System.Security.Cryptography.Rfc2898DeriveBytes.OpenHmac()
   at System.Security.Cryptography.Rfc2898DeriveBytes..ctor(Byte[] password, Byte[] salt, Int32 iterations, HashAlgorithmName hashAlgorithm)
   at System.Security.Cryptography.Rfc2898DeriveBytes..ctor(String password, Byte[] salt)
   at Rextester.Program.Encrypt(String clearText)
   at Rextester.Program.Main(String[] args)

Abort signal from abort(3) (SIGABRT)
encrypt or decrypt?
enter your number