code: function decodeCryptojsSalt (input) {
    var ciphertext = Buffer.from(input, 'base64')
    if (ciphertext.slice(0, 8).toString() === 'Salted__') {
      return {
        salt: ciphertext.slice(8, 16),
        ciphertext: ciphertext.slice(16)
      }
    } else {
      return {
        ciphertext: ciphertext
      }
    }
  }
docs: http://stackoverflow.com/questions/25288311/cryptojs-aes-pattern-always-ends-with