Fingerprint reader to open electric strike

So like this?

Also, would a 2N3904 NPN transistor and a 1k? resistor work?