This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Org.BouncyCastle.Crypto; | |
| using Org.BouncyCastle.Crypto.Parameters; | |
| using Org.BouncyCastle.OpenSsl; | |
| using Org.BouncyCastle.Security; | |
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| namespace MyProject.Data.Encryption | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function( factory ) { | |
| "use strict"; | |
| if ( typeof exports === 'object' ) { | |
| // learn how to inject/load other module like jQuery to this module | |
| /*module.exports = function (root, $) { | |
| if ( ! root ) { | |
| // CommonJS environments without a window global must pass a | |
| // root. This will give an error otherwise | |
| root = window; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void SearchAndReplace(string document, string outDocument) | |
| { | |
| string docText = null; | |
| // copy doc | |
| System.IO.File.Copy(document, outDocument); | |
| using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(outDocument, true)) | |
| { | |
| using (StreamReader sr = new StreamReader(wordDoc.MainDocumentPart.GetStream())) |