Security libraries and samples