 #
 decryptData = (key, data) ->
   if key == ''
-    console.error 'Decryption key empty!'
-    return false
+    throw new Error 'Decryption key empty!'
 
   options_ret = {}
 

    value = ''

  hash = sjcl.hash.sha256.hash value
  return sjcl.codec.hex.fromBits hash
#
generateKey = (password, salt) ->
  if password == ''
    throw new Error 'Password for key generation empty!'

  hex = sjcl.codec.hex.fromBits

