Jump to content


Popular Content

Showing content with the highest reputation on 02/08/2019 in all areas

  1. 2 points
    I hope you know I'm not the Queen ...
  2. 1 point
    I think you're doing something wrong. The CryptAuthCode() computes a message authentication code. The length of the resulting code is constant, and does not depend on the length of the message. When using the SHA512 algorithm, the length of the code after encoding to Base64 should be 128. If you're getting 32, then your algorithm is probably MD5 or MDC2, not SHA512. Or perhaps your $$KEY variable is empty? Needless to say, a message authentication code is not the message, does not contain the message, and cannot be converted back to the message. https://en.wikipedia.org/wiki/HMAC
  3. 1 point
    Well, assuming this only needs to be done once, I would find the records where the name is "Bill", type "William" in one record and do Records > Replace Field Contents… > Replace with: "William". Keep in mind that there's no undo after either method.
  4. 1 point
    Do you have the plugin installed in the CWP Extensions folder? (different than the SASE Extensions folder) As an aside: if you are just using the URL to run the script, then don't use -findall but -findany. Much quicker
  5. 1 point
    And if you want a full recursive unzip try this // unZipDir ( fm_dirOut ; fm_fileIn ) // 10_12_23_JR WORKING // v1.1 // unzips nested files from zip file // adapted from jsshah, http://www.stackoverflow.com import java.io.FileInputStream import java.io.FileOutputStream import java.util.zip.ZipInputStream try { int BUFFER_SIZE = 2048 fis = new FileInputStream(new File(fm_fileIn)) zis = new ZipInputStream(new BufferedInputStream(fis)) while((entry = zis.getNextEntry()) != null) { outFile = fm_dirOut + entry.getName() name = entry.getName() if (name.endsWith("/")) { newDirs = new File(fm_dirOut + name) if(!newDirs.mkdirs() && !newDirs.isDirectory()) { // dir creation failed return ERROR } //newDirs.mkdirs() } else { byte[] data = new byte[bUFFER_SIZE]; fos = new FileOutputStream(outFile) dest = new BufferedOutputStream(fos, BUFFER_SIZE) while((count = zis.read(data, 0, BUFFER_SIZE)) != -1) { dest.write(data, 0, count) } //end while //close the output streams dest.flush() dest.close() } //end while } //finished with all the files, so close the zip zis.close() } catch(Exception e) { e.printStackTrace() return false } return true
This leaderboard is set to Los Angeles/GMT-07:00
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.