This package provides supplementary functions for 'jsrsasign' such like file I/O utilities.
Public page is http://kjur.github.com/jsrsasign .
- readFile : read file as binary string
- readFileHexByBin : read file as binary then convert it to hexadecimal string
- readFileUTF8 : read file as UTF-8 string
- saveFile : save file as binary string
- saveFileBinByHex : convert a hexadecimal string to raw string then save it as file.
> var rsu = require('jsrsasign-util'); > var rawString = rsu.readFile("bar.bin"); > rsu.saveFileBinByHex("foo.bin", "30143abb...");