I hereby claim:
- I am jmvermeulen on github.
- I am vorigeweek (https://keybase.io/vorigeweek) on keybase.
- I have a public key ASC9Uyq0DTdcaj6n1yNV6SdYWLAl92G7969trHAgtqEr_wo
To claim this, I am signing this object:
| ## Powershell method of transfering small (< 1 MB) binary files via Clipboard | |
| ## | |
| ## NB: Unwise to attempt to encode binary files exceeding 1 MB due to excessive memory consumption | |
| ## Powershell 5.0> | |
| # On the transmission end: | |
| $Content = Get-Content -Encoding Byte -Path binaryfile.xxx | |
| [System.Convert]::ToBase64String($Content) | Set-Clipboard | |
| # On the receiving end |
I hereby claim:
To claim this, I am signing this object:
| private byte[] decryptdata(byte[] bytearraytodecrypt, string key) | |
| { | |
| AesCryptoServiceProvider keydecrypt = new AesCryptoServiceProvider(); | |
| keydecrypt.BlockSize = 128; | |
| keydecrypt.KeySize = 256; | |
| keydecrypt.Key = System.Text.Encoding.UTF8.GetBytes(key); | |
| keydecrypt.Padding = PaddingMode.PKCS7; | |
| keydecrypt.Mode = CipherMode.ECB; | |
| ICryptoTransform crypto1 = keydecrypt.CreateDecryptor(keydecrypt.Key, keydecrypt.IV); |
| // Example | |
| // How to call the New Relic Plugin metrics API from C# (https://platform-api.newrelic.com/platform/v1/metrics) | |
| // Fill in your license key (request for free) and run the app. | |
| // Data will show under the Plugins tab. | |
| async void Main() | |
| { | |
| var request = new RootObject(); | |
| request.agent = new Agent{ host=Environment.MachineName, version = "1.0.0"}; | |
| request.components = new List<Component>(); |