Perl scripts to encrypting and decrypt text using Rijndael

I talked about Rijndael in a few previous posts: Expressing a function f: GF(2⁸) → GF(2⁸) as a polynomial using a Lagrange polynomial, Generating the Rijndael S-box, Efficient multiplication and division in GF(28), Sieving irreducible monic polynomials over a finite field, Addition and multiplication table for GF(22). Today I wrote a couple of Perl scripts…

0

Pulling ClickOnce applications from the client using a script

I have a bunch of internal Microsoft ClickOnce applications that I use all the time. But every time I clean install my machine I need to go look up all the application entry points and reinstall them. This got boring, so I wrote an executable that takes a URL on the command line, and then uses the System.Deployment.Application.InPlaceHostingManager…

0

Riffing on Raymond – incrementing the reference count on a smart pointer

Last Friday, Raymond Chen blogged about how to use a function that released one of its inputs with various smart pointer classes. He made two suggestions, and I offered a third: (Raymond) tell the smart pointer class to release ownership to the function (Raymond) use a different function that doesn’t release the input (Me) take…

4

Poking into the "trusted root certification authorities" certificate stores for the current user and the local machine

Sometimes, like when trying to install a test driver you just built, it is very important to distinguish between “I trust this code” and “my machine trusts this code.” It can be difficult to tell the difference by just double-clicking on a .cat file or using signtool.exe verify – luckily, the Microsoft Management Console provides…

1

Taking audio glitch traces on Windows 10: phone edition

Related blog post: Taking audio glitch traces on Windows 10: desktop edition Sometimes if audio is glitching we will reach out to people and ask them to take glitch traces so we can look at them and try to figure out what is going on. One of the tools we use to take audio glitch…

0

Taking audio glitch traces on Windows 10: desktop edition

Related post: Taking audio glitch traces on Windows 10: phone edition Sometimes if audio is glitching we will reach out to people and ask them to take glitch traces so we can look at them and try to figure out what is going on. One of the tools we use to take audio glitch traces…

7

Playing audio to the earpiece from a Windows Phone 8.1 universal app

Some time ago I blogged about the Windows Phone AudioRoutingManager API which allows you to put a “Speakerphone” and “Bluetooth” button in your Windows Phone app. A common question that I get now is “I’m trying to play audio to the earpiece from my app, but AudioRoutingManager::SetAudioEndpoint(AudioRoutingEndpoint_Earpiece) is failing.” It’s an interesting question, because Windows…

1

Enumerating inactive volume sessions

In my last blog post on this topic I showed how to get all kinds of information for the active audio sessions, including the Windows 8 Store package identifier for the process (if there was one.) However, I recently had a need to pull information for inactive sessions too – and it needed to run…

3

Using StrCmpLogicalW to sort strings the way the shell does

I have various scripts which use the “dir” command to enumerate files and then act on the most recent file that meets certain criteria. I noticed that “dir” and the Windows shell sometimes have different orders. For example, if I have a folder containing files { track1.mp3, track2.mp3, …, track9.mp3, track10.mp3, track11.mp3 } then the…

0