Security As A Code